rossw
06-13-2010, 11:05 AM
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"
<p>
<label>Name
<input name="Name" type="text" id="Name" size="40" />
</label>
</p>
<p>
<label>Email
<input name="Email" type="text" id="Email" size="40" />
</label>
</p>
<p>
<label>Service
<select name="Service" id="Service">
<option>Hair & Makeup
<option>Hair
<option>Makeup
</select>
</label>
</p>
<p>
<label>Message
<textarea name="Message" cols="40" rows="5" id="Message">
</label>
</p>
<p>
<input type="submit" value="Submit" name="B1" />
<input type="reset" value="Reset" name="B2" />
</p>
</form>
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"
<p>
<label>Name
<input name="Name" type="text" id="Name" size="40" />
</label>
</p>
<p>
<label>Email
<input name="Email" type="text" id="Email" size="40" />
</label>
</p>
<p>
<label>Service
<select name="Service" id="Service">
<option>Hair & Makeup
<option>Hair
<option>Makeup
</select>
</label>
</p>
<p>
<label>Message
<textarea name="Message" cols="40" rows="5" id="Message">
</label>
</p>
<p>
<input type="submit" value="Submit" name="B1" />
<input type="reset" value="Reset" name="B2" />
</p>
</form>