Easy Get Variable POST and GET


For example you have form in html with variable called var1 and var2 ….

You can easyly get all the variable like this without using $var1 = $_POST[”var1″];
and register global off …
The code is like this :

<?

//easyvariable.php
extract($_POST, EXTR_PREFIX_SAME, "wddx");
echo "var1 = $var1, var2 = $var2\n";

?>

Tags: ,

Leave a Reply




This some posting which are related to this article :
  • Arrange variable
  • Dynamic variable in PHP
  • Write Commercial Blog Content Every Day ?
  • Handle Multiple CheckBox in PHP
  • Best Rapidshare Download Tools
  • just read related article


    Some random post which may be interesting :
    this article is selected randomly