![]() Topic awaiting preservation: PHP check form (Page 1 of 1)  | 
  |
|---|---|
| 
       Bipolar (III) Inmate From: 1393  | 
    
       
  posted 03-06-2005 15:42
      
      Does PHP have an equivalent to the following Javascript?: code: if(document.form1.check.checked==true) 
  | 
  
| 
       Paranoid (IV) Inmate From: France  | 
    
       
  posted 03-06-2005 15:52
      
      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.  |