homepage Welcome to WebmasterWorld Guest from
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Pubcon Platinum Sponsor 2014
Home / Forums Index / Code, Content, and Presentation / Perl Server Side CGI Scripting
Forum Library, Charter, Moderators: coopster & jatar k & phranque

Perl Server Side CGI Scripting Forum

Perl Issue

Msg#: 4532525 posted 6:45 am on Dec 25, 2012 (gmt 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]



WebmasterWorld Senior Member 10+ Year Member

Msg#: 4532525 posted 8:26 pm on Jan 25, 2013 (gmt 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 ...".

Global Options:
 top home search open messages active posts  

Home / Forums Index / Code, Content, and Presentation / Perl Server Side CGI Scripting
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved