include("lib_carrito.php"); if($_POST) { $keys_post = array_keys($_POST); foreach ($keys_post as $key_post) { $$key_post = $_POST[$key_post]; error_log("variable $key_post viene desde $ _POST"); } } if($_GET) { $keys_get = array_keys($_GET); foreach ($keys_get as $key_get) { $$key_get = $_GET[$key_get]; error_log("variable $key_get viene desde $ _GET"); } } if($_SESSION) { $keys_sesion = array_keys($_SESSION); foreach ($keys_sesion as $key_sesion) { $$key_sesion = $_SESSION[$key_sesion]; error_log("variable $key_sesion viene desde $ _SESSION"); } } // Check if session is not registered , redirect back to main page. // Put this code in first line of web page. ?>
|