[solved] Check box values returns null
Posted: Tue Jun 28, 2005 2:42 pm
I wonder if anybody can tell me why this works
and this doesn’t?
Basically I’m trying to return the values of a form to send out in an email but for some reason the second one above is returning a ‘null' value.
This second one uses a check box:
and the insert into the database for this is:
So can anyone tell or show me why I cannot get the ‘yes’ ‘no’ value of the check box to be returned.
Thanks a mil
Brian
Code: Select all
$message .= 'Last Name: ' .$_POST['last_name']. "\r\n";Code: Select all
$message .= 'Championship: You said - ' .$_POST['champ_no']. "\r\n";This second one uses a check box:
Code: Select all
<input type="e;checkbox"e; name="e;champ_no"e; value="e;"e; >Code: Select all
GetSQLValueString(isset($_POST['champ_no']) ? "true" : "", "defined","'Yes'","'No'"),Thanks a mil
Brian