Hi there, I put this post in the HTML, XHTML & CSS forum but I think it might be more relevant here...
I'm trying to create a form with "select" inputs which is processed by a php file and then sent to me via email. When I submit the form the browser doesn't display my "thankyou" page (like it should) and I don't receive my email.
In my code I have: (for example)
<form method="post" action="contact.php">
...
<select name="year">
<option value="2004">2004</option>
<option value="2005">2005</option>
</select>
In my php file I have:
$year = $_POST['year'] ;
...
$messageproper =
...
"\n\nYear: " . $year . "
The idea is that it should tell me what year was selected in the email I recieve. What am I doing wrong?
I'm trying to create a form with "select" inputs which is processed by a php file and then sent to me via email. When I submit the form the browser doesn't display my "thankyou" page (like it should) and I don't receive my email.
In my code I have: (for example)
<form method="post" action="contact.php">
...
<select name="year">
<option value="2004">2004</option>
<option value="2005">2005</option>
</select>
In my php file I have:
$year = $_POST['year'] ;
...
$messageproper =
...
"\n\nYear: " . $year . "
The idea is that it should tell me what year was selected in the email I recieve. What am I doing wrong?