Print Page | Close Window

??Send CGI form to multiple recipients..?

Printed From: Web Wiz Forums
Category: General Discussion
Forum Name: General Discussion
Forum Description: General discussion and chat on any topic.
URL: https://forums.webwiz.net/forum_posts.asp?TID=5833
Printed Date: 30 March 2026 at 11:02am
Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com


Topic: ??Send CGI form to multiple recipients..?
Posted By: danielle
Subject: ??Send CGI form to multiple recipients..?
Date Posted: 18 September 2003 at 7:17pm

Hi - I have a form where users can choose who they want to send it to with a drop down menu in a certain department at a place of business. I need for whichever department you choose to be emailed to that certain address. My problem is I can't figure out the code to do that. Can anyone help?? I thought I had it but it doesn't work:

<select name="select">

<option selected>Customer Service</option>
<input type=hidden name="Customer Service" value=
mailto:value=email@email.com - email@email.com >

<option>Accounting</option>
<input type=hidden name="Accounting" value= mailto:email2@email.com - email2@email.com >

<option>President</option>
<input type=hidden name="Owner" value= mailto:value=email3@email.com - email3@email.com >

</select>

Please help? THANK YOU!



-------------
Danielle



Replies:
Posted By: danielle
Date Posted: 18 September 2003 at 7:21pm
I worded the subject 'multiple recipients' buy I probably should have specified that I need the form sent to one recipient chosen from a drop down menu, so I need to include about five email addresses and the form will only be sent to who they choose from the drop down menu. Sorry! Please help if you can. Thanks.

-------------
Danielle


Posted By: KCWebMonkey
Date Posted: 18 September 2003 at 7:51pm

with ASP:

<select name="emailAddress">
 <option value="email@email.com" selected>Customer Service</option>
 <option value="email2@email.com">Accounting</option>
 <option value="email3@email.com">President</option>
</select>

that way you could pull the email address from the value of the select box by using varEmail = Request.Form("emailAddress")



Posted By: Bluefrog
Date Posted: 19 September 2003 at 8:23am

I'd store the email addresses somewhere where they can't be spidered by spambots, and use an index or something to get them, e.g. database. Alternatively, you can do something like:

<option value="email#email6^9com">President</option>

On the page, and then on the post page, do something like:

emailAddy=Replace(Request.Form("emailAddress"), "#", "@")
emailAddy=Replace(emailAddy, "6^9", ".")

That will help avoid the spambots.

 




Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.08 - https://www.webwizforums.com
Copyright ©2001-2026 Web Wiz Ltd. - https://www.webwiz.net