I'm setting up a contact form where the user chooses the person to email from a dropdown list. I can't seem to get the dropdown value to pass properly, I'm sure I'm missing something and was wondering if anyone can help: Here's the HTML:
php variable question
4
I'm setting up a contact form where the user chooses the person to email from a dropdown list. I can't seem to get the dropdown value to pass properly, I'm sure I'm missing something and was wondering if anyone can help:
Here's the HTML:
Here's the code in my mail script:
It never picks up the posSubject value and the output is just "@mydomain.com" The select box is between the form tags, I'm using POST method, and the other fields are working fine. Any ideas?
Thanks!
Here's the HTML:
Code:
<div class="form">What is your question related to: <select name="posSubject" id="posSubject"> <option value="bill" selected>General Question</option> <option value="john">Warranty Question</option> <option value="cory">Estimating</option> <option value="bob">Service Question</option> </select>
Code:
$yourEmail = $_POST["posSubject"] . '@mydomain.com';
Thanks!
- Martyn Walker
- fthomas137
- boo5td
Next Topics on Trending Feed
-
4