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 firstname.lastname@example.org) 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 email@example.com 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 = [
#### The following aliases are commented out examples, remove the leading # sign to use them
## A simple example of mail sent to John Smith
## 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
[edited by: coopster at 6:55 pm (utc) on Jan 4, 2013]
[edit reason] updated to example.com [/edit]
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 ...".