fanderson
November 30th, 2007, 09:32 AM
Hi,
I am working on sending the contents of an html form via email. I have the standard fields such as name and address that come through fine using '{$_POST['name']}' etc., however, I have a couple of list items that show as dropdowns in the form.
I checked php.net/mail but it didn't have any clues, so I would really appreciate some guidance on how to the selected value from something like this to show up in the email:
<label for="problem">Problem Type:</label>
<select>
<option value="selected" selected="selected">-- Select --</option>
<option value="plumbing">Plumbing</option>
<option value="electrical">Electrical</option>
<option value="hvac">HVAC</option>
<option value="roofing">Roofing</option>
<option value="grounds">Grounds</option>
<option value="parking">Parking</option>
<option value="other">Other</option>
</select>
Thanks in advance for the help.
I am working on sending the contents of an html form via email. I have the standard fields such as name and address that come through fine using '{$_POST['name']}' etc., however, I have a couple of list items that show as dropdowns in the form.
I checked php.net/mail but it didn't have any clues, so I would really appreciate some guidance on how to the selected value from something like this to show up in the email:
<label for="problem">Problem Type:</label>
<select>
<option value="selected" selected="selected">-- Select --</option>
<option value="plumbing">Plumbing</option>
<option value="electrical">Electrical</option>
<option value="hvac">HVAC</option>
<option value="roofing">Roofing</option>
<option value="grounds">Grounds</option>
<option value="parking">Parking</option>
<option value="other">Other</option>
</select>
Thanks in advance for the help.