![]() Topic awaiting preservation: PHP check form |
|
---|---|
Author | Thread |
Bipolar (III) Inmate From: 1393 |
![]() Does PHP have an equivalent to the following Javascript?: code: if(document.form1.check.checked==true)
|
Paranoid (IV) Inmate From: France |
![]() If a checkbox is checked, it should appear in the $_GET or $_POST array, so : yes! use a checkbox as a condition in PHP. In your case it would look like : code: if( isset( $_GET['check'] ) ) if the form is sent in GET or code: if( isset( $_POST['check'] ) ) if the form is sent in POST. |