Check POST Vars Exist


/ Published in: PHP
Save to your folder(s)



Copy this code and paste it in your HTML
  1. function checkPostVars($checkArray) {
  2. foreach($checkArray as $var) {
  3. if(!isset($_POST[$var])) {
  4. return false;
  5. }
  6. }
  7.  
  8. return true;
  9. }

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.