Simplify Submitted Form Variables - i.e. "$_POST['name'] to $name"


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



Copy this code and paste it in your HTML
  1. foreach($_REQUEST as $key => $val) { $$key = $val; }
  2.  
  3. foreach($_GET as $key => $val) { $$key = $val; }
  4.  
  5. foreach($_POST as $key => $val) { $$key = $val; }

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.