Hi,
I am having problems trying to post a checkbox value from a form.
<font size=\"1\">Show my email?
<input type=\"checkbox\" name=\"show_email\" value=\"checkbox\" checked>
</font>
That is the code for my registration form.
I send the value of the checkbox to the processing function.
$show_email = $_POST['show_email'];
I then have the following condition.
if ($show_email == checked){
$email_value = 1;
}
else{
$email_value = 0;
}
And from there I continue to update the appropriate database entry. However, the value in the database always appears as a '0'.
Any suggestions?