Re: [PHP] Re: Type of form element

2005-10-29 Thread Richard Lynch
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';

[PHP] Re: Type of form element

2005-10-28 Thread James Benson
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

Re: [PHP] Re: Type of form element

2005-10-28 Thread Greg Donald
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