I honestly cannot figure out why this code will not work. I have it on another form, another page and it works fine, different variables but the same code. Can someone point out my error?
Database field is called "BillMe" and is SmallInt, default zero, not null....
From Subscribe.php
<form name="order" action="subscribe2.php" method="POST" onSubmit="return checkit(this)">
.
.
.
<td><INPUT TYPE="checkbox" NAME="Bill_Me" Value="on"> Bill Me</td>
From subscribe2.php
$BillMe = $_POST['Bill_Me'];
if ($BillMe == "on") {
$BillThem = "1";
} else
{
$BillThem = "0";
}
$subscribe = "INSERT INTO subs (BillMe) VALUES('$BillThem')";
I tried changing the declared value of the checkbox in the initial html form from "on" to "off" to "1" or"0" or leaving it out all together and tried switching the $BillThem value in the if statement to see if my logic was backwards but I just keep getting the fefault of "0" in every instance.
Any ideas? Am I just retarded or is it because it is 7am?