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

Scritchfield, Larry LScritch at MAIL.co.washoe.nv.us
Tue Jan 21 14:51:47 EST 2003


First, I would highly recommend you use "nms" scripts, not Matt's Form Mail.

http://nms-cgi.sourceforge.net/

The advantages are many, but primarily it's a matter of security and not
having your server hijacked by spammers.

All you have to do is forget the hidden "recipient" field. Have the
"recipient" field one of the select options instead.

Larry Scritchfield
lscritch at mail.co.washoe.nv.us
Internet Services Librarian                             (775) 327-8349
Washoe County Library System                      www.washoe.lib.nv.us

> -----Original Message-----
> From:	Joan Graham [SMTP:jgraham at starklibrary.org]
> Sent:	Tuesday, January 21, 2003 11:38 AM
> 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