The hosting service I am using does not permit the use of registering globals. But I need to pass a variable with a constant value to other scripts that are called.
I've tried:
But the value of $location does not appear in the other scripts. I'm also not sure if I'm calling it correctly from the other scripts. I do have session_start(); at the beginning of the other scripts.
Any ideas? Thanks much!
I've tried:
Code:
<?php
session_start();
$location = $_GET['location'] // Passed in from a webform.
session_register("location");
?>
But the value of $location does not appear in the other scripts. I'm also not sure if I'm calling it correctly from the other scripts. I do have session_start(); at the beginning of the other scripts.
Any ideas? Thanks much!