Re: [PHP] How do I check if a checkbox has been checked?

2002-11-01 Thread Tom Woody
The syntax as I have used it is (not the cleanest or best way to do it by a long run - but it works): > this will have the checkbox be checked by default, also you can do what ever other things you need to do based on the on/off conditions. On Fri, 1 Nov 2002 10:47:43 -0500 "DonPro" <[EMAIL PRO

Re: [PHP] How do I check if a checkbox has been checked?

2002-11-01 Thread John Nichel
if ( isset ( $_POST['shipper_save'] ) ) { echo ( "It's Checked" ); } Or use $_GET['shipper_save'] depending on your forum method. DonPro wrote: Hi, I have a form with a checkbox like so: When I submit, the value is always shown as "ON" regardless of whether I've checked the checkbox or not.

[PHP] How do I check if a checkbox has been checked?

2002-11-01 Thread DonPro
Hi, I have a form with a checkbox like so: When I submit, the value is always shown as "ON" regardless of whether I've checked the checkbox or not. So this begets the question, How can I code my PHP form processing script to determine whether the checkbox was checked? Thanks, Don -- PHP Ge