Welcome to WebmasterWorld Guest from

Forum Moderators: coopster & jatar k & phranque

Message Too Old, No Replies

Perl Issue

6:45 am on Dec 25, 2012 (gmt 0)

New User

5+ Year Member

joined:Dec 25, 2012
posts: 4
votes: 0


I have this perl script to process a form. When completing the form, the next step is a preview page before submitting.

The issue is the user gets a drop down list to select the appropriate email to send to. I do not want this drop down list. I have a single email to send to and the script says it is supposed to be hidden. While the actual address does not display, the name does. But the user is presented with another option I can't get rid of:

On the preview page on the drop down list options:

1 administrator ( I do not want this one at all. it sends to webmaster@mydomain.tld) I did not put that email address in the script and I cannot find where to get rid of it.

2 Tattoo Artist (this is the only email myname@mydomain.tld that I want.) I don't want the user to have to select it.

The area of the code in the pl is this and I can't see what is wrong: Any suggestions? Thanks

# List of email address to which mail can be sent.
# Mail cannot be sent to any email address which is not on this list.
# If a single address is listed, it will be a hidden value on the
# form, otherwise, the user will be presented with a pulldown menu
# of aliases to which email can be sent.
# The addresses listed here are never visible via served web pages.
# Both the names and the addresses here can be (but don't have to be)
# translated. You might want to translate names for functional duties
# such as 'webmaster' or 'customer support'. You might want to put in
# translations for the email addresses when different people or teams
# would want to recieve the email in a different language.
$Aliases = [
'contact_administrator_name', 'contact_administrator_email',

#### The following aliases are commented out examples, remove the leading # sign to use them

## A simple example of mail sent to John Smith
'Tattoo Artist','user@example.com',

## Here both the name and the email are translated.
## Translations can be edited in the translations section.

## Just the name is translated

## A mailing list with multiple addresses separated by commas
#'two people','webmaster@yoursite.tld,postmaster@yoursite.tld',

[edited by: coopster at 6:55 pm (utc) on Jan 4, 2013]
[edit reason] updated to example.com [/edit]

8:26 pm on Jan 25, 2013 (gmt 0)

Senior Member from US 

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month

joined:Feb 12, 2003
posts: 1208
votes: 0

skeeterz, let me first suggest that you make the title of your posts more meaningful. "Perl issue" tells the reader essentially nothing, forcing them to open the thread just to find out what it's about. A lot of people won't bother, which might have been why you didn't get any replies. A better title might have been "How to remove an item from <select> in formail script?"

Anyway, the relevant part of your code doesn't appear to be in the snippet you sent. You probably need the part that prints "<select ...".