I usually place a hidden field with the same name as the checkbox
field before the actual checkbox field. I store my 'false' value in
there. If the checkbox is checked the hidden field is overridden.
?php
error_reporting( E_ALL );
if( isset( $_POST[ 'submit' ] ) )
{
echo 'pre';
If you have a checkbox you just test if the value is set with isset()
if it's not set they never selected the checkbox.
Or if thats not what you mean maybe this could help
http://php.net/variables.external
Shaun wrote:
Hi,
I have some checkboxes on my page which correspond with
On Fri, 28 Oct 2005, James Benson wrote:
If you have a checkbox you just test if the value is set with isset()
if it's not set they never selected the checkbox.
I have some checkboxes on my page which correspond with boolean fields in
my database - actually they are TINYINT's in which I store
3 matches
Mail list logo