Re: [PHP] checkboxes, radio buttons and $_POST['']

2003-01-09 Thread Tom Rogers
Hi, Friday, January 10, 2003, 4:25:00 AM, you wrote: JEO> Hi JEO> HELP!!! JEO> I have read through the manual about using $_POST[''] to retrieve JEO> data from forms, but what happens when a form element is not filled in JEO> or checked? JEO> If I have a checkbox on a form called "chk1" I get

Re: [PHP] checkboxes, radio buttons and $_POST['']

2003-01-09 Thread Marek Kilimajer
In the php.ini file set error reporting to E_ALL & ~E_NOTICE -- Joseph W. Goff Seems like register_globals issue has been replaced by error_reporting ;-) John-Erik Omland wrote: Hi HELP!!! I have read through the manual about using $_POST[''] to retrieve data from forms, but what happens

Re: [PHP] checkboxes, radio buttons and $_POST['']

2003-01-09 Thread Tim Ward
isset($_POST["chk1"]) will only be true if the checkbox is checked. Tim Ward http://www.chessish.com mailto:[EMAIL PROTECTED] - Original Message - From: John-Erik Omland <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, January 09, 2003 6:25 PM Subject: [

[PHP] checkboxes, radio buttons and $_POST['']

2003-01-09 Thread John-Erik Omland
Hi HELP!!! I have read through the manual about using $_POST[''] to retrieve data from forms, but what happens when a form element is not filled in or checked? If I have a checkbox on a form called "chk1" I get an error from PHP when I try this: $chk1 = $_POST['chk1']; // error if user did n