I'm writing the PHP and HTMl code. Users choose email address and send email to me. The send function is working, I tested. It is written on PHP
However, when user chooses an email address:
<tr>
<td>To: </td>
<td>
<select>
<option value=1> email1</option>
<option value=2> email1 </option
</select>
</td>
</tr>
Then according to the value the email will be send to the specific address.
Here, according to the value.
if ($_POST['value'] ==1)
$To ='mike@email.com';
#php code
mail($To, $About, $Data, $headers);
But its not working. What I'm doing wrong.
Thanks