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
6
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:
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>
PHP Code:
$yourEmail = $_POST["posSubject"] . '@mydomain.com';
Thanks!
- coog
- petebolduc
- weaverIT Banned
- mattalways
- saschakimmel
- weaverIT Banned
- [1] reply
- saschakimmel
- weaverIT Banned
Next Topics on Trending Feed
-
6