/ Published in: PHP
This can be used as a general function to get the value stored in any of the possible input sources.
use
use
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
/* Get a variable from the possible input sources. */ function getVar($var_name) { return $_GET[ $var_name ]; return $_POST[$var_name ]; return $_SESSION[ $var_name ]; return $_COOKIE[ $var_name ]; } else { return null; } }