View Full Version : Help with my form mail please

06-13-2010, 12:05 PM
Hi, Can you help???

I want to insert a dropdown menu on my contact page so that it has 3 items. I want it to work so that if the first item is selected then the data from the form is sent to email address 1. If the second item is selected on the dropdown menu then the data from the form is sent to email address 2. And if the third item is selected then the data is sent to both email addresses. Could you tell me how to do this or point me in the right direction please, many thanks in advance!

My Script is as follows:

FORM method="post" action="http://www.mysite.co.uk/cgi-bin/FormMail.pl"
<input type="hidden" name="recipient" value="info@mysite.co.uk"
<input type="hidden" name="subject" value="Website Enquiry"
<input type="hidden" name="redirect" <value="http://www.mysite.co.uk/thanks.html"

<input name="Name" type="text" id="Name" size="40" />

<input name="Email" type="text" id="Email" size="40" />

<select name="Service" id="Service">
<option>Hair & Makeup

<textarea name="Message" cols="40" rows="5" id="Message">
<input type="submit" value="Submit" name="B1" />

<input type="reset" value="Reset" name="B2" />

06-13-2010, 06:23 PM
You won't be able to do this with formmail alone. Formmail just sends what you give it to one email address. For what you are wanting you will need to write your own form processing script which is likely something you won't know how to do so I suggest you start searching for premade scripts.

06-13-2010, 08:20 PM
Thanks Aerospace, I will get searching for one just now!

Major Payne
06-15-2010, 06:18 AM
Maybe one of these may allow you to get that done. Jotform.com might be one as it seems to be popular.

Your current hosting package MUST allow SMTP ( http://en.wikipedia.org/wiki/Simple_Mail_Transfer_Protocol ) to work. Otherwise, no email can be sent.

Use any of the below sites to make the workable form you need:

For making forms:

These are really good online form makers. Just follow the instructions for making it and uploading file(s).

http://www.jotform.com/?gclid=CNKhqei1wJ4CFRQhnAod6laUqA (WYSIWYG Form Maker)
Ajax - Creating an HTML Form: http://www.tizag.com/ajaxTutorial/ajaxform.php

http://www.reconn.us/content/view/12/34/ (Download - Contact Us Script)

Form Service: http://www.mycontactform.com/
Online Free Tool, PHP Contact Form Code Generator: http://www.htmlbasix.com/contactform.shtml
PHP Mailer Script Step by Step: http://www.htmlgoodies.com/beyond/php/article.php/3855686
PHP Sending E-mails: http://www.w3schools.com/PHP/php_mail.asp

Freebie: Good looking Fluid Contact Form: http://www.flashuser.net/flash-components/freebie-good-looking-flash-contact-form.html

Put an online contact form on your site in about 8 minutes (Requires an account): http://response-o-matic.com/