[WEB4LIB] form to send input to one of several recipients

Pons, Lisa (PONSLM) PONSLM at UCMAIL.UC.EDU
Tue Jan 21 15:36:37 EST 2003


if you are using matt's formmail... you can use it for this.

In your drop down box, use <select name ="recipient">

Formmail looks for the value of the "recipient" field to determine who to
send the form to.

Cheers!

Lisa

Lisa Pons

Webmaster
University Libraries
University of Cincinnati
lisa.pons at uc.edu
(513)556-1431

-----Original Message-----
From: Joan Graham [mailto:jgraham at starklibrary.org]
Sent: Tuesday, January 21, 2003 2:38 PM
To: Multiple recipients of list
Subject: [WEB4LIB] form to send input to one of several recipients


Dear Folks,

=20

I'm sure it can be done, but so far it's not happening:

=20

For our staff forms section on the library's web site, I need to create
a form for an employee to submit a request for job reclassification. I
have many forms already on our site that use Matt's Form Mail script (on
our host server)  to send input to an e-mail recipient. Some of the
forms will send the same input to multiple recipients, using the script
to process the info from the form.

Now I have a form made, currently for testing at
http://www.stark.lib.oh.us/reclassform.html

The employee is supposed to fill in the form, and then choose one  name
from a scrolling list of four possible e-mail recipients. I have a
hidden field in the form with the e-mail addresses of all four
recipients, but the user is supposed to choose only one from the
scrolling list, and based on  his choice, the form is to go to only that
one recipient. I have a Submit button at the end of the form. Presently,
of course, the form works but it insists on going to all the recipients
in the hidden field.

=20

I've made menus in other pages that would cause a user to go to a
certain URL, based on his choice from a pull-down menu, and they all
worked fine, but they didn't involve a form or a cgi script.

Who out there knows how to make the form input go to just one of the
four recipients, based on which the user selects from the list? TIA.

=20

Joan Graham

Stark County District Library




*********************************************************************
Due to deletion of content types excluded from this list by policy,
this multipart message was reduced to a single part, and from there
to a plain text message.
*********************************************************************



More information about the Web4lib mailing list