Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - ??Send CGI form to multiple recipients..?
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

??Send CGI form to multiple recipients..?

 Post Reply Post Reply
Author
danielle View Drop Down
Newbie
Newbie


Joined: 18 September 2003
Location: United States
Status: Offline
Points: 2
Post Options Post Options   Thanks (0) Thanks(0)   Quote danielle Quote  Post ReplyReply Direct Link To This Post Topic: ??Send CGI form to multiple recipients..?
    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=
email@email.com>

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

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

</select>

Please help? THANK YOU!

Back to Top
danielle View Drop Down
Newbie
Newbie


Joined: 18 September 2003
Location: United States
Status: Offline
Points: 2
Post Options Post Options   Thanks (0) Thanks(0)   Quote danielle Quote  Post ReplyReply Direct Link To This Post 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.
Back to Top
KCWebMonkey View Drop Down
Senior Member
Senior Member
Avatar
Go Chiefs!

Joined: 21 June 2002
Status: Offline
Points: 1319
Post Options Post Options   Thanks (0) Thanks(0)   Quote KCWebMonkey Quote  Post ReplyReply Direct Link To This Post 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")

Back to Top
Bluefrog View Drop Down
Senior Member
Senior Member


Joined: 23 October 2002
Location: Korea, South
Status: Offline
Points: 1701
Post Options Post Options   Thanks (0) Thanks(0)   Quote Bluefrog Quote  Post ReplyReply Direct Link To This Post 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.

 

Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.