Advertisement
gidmakus

reference checbox ?

Mar 10th, 2011
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.46 KB | None | 0 0
  1.  1    if ($_POST['approve[]']==''){   // the question is how do i reference the checkbox ***
  2.         $arrErrors['approve[]'] = '*';
  3.     }
  4.  2      if (count($arrErrors) == 0) {
  5.         //this is the connection
  6.         require('connections/approve_list.php');
  7.         header("Location:administrator.php");
  8.  
  9.  
  10. In number (1) when the approval button is clicked it validate if the checkbox is checked
  11.  
  12. if no errors  then (2) it call the line and do the necessary update.
  13.  
  14. hope i make sense
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement