Thanks to the user that suggested I use session variables. Unfortunately, I am having some trouble with those as well.
I currently have a webform where the user enters the location of where they want to view the weather information from. Then, I use POST in PHP like this:
post.php script:
<?php
session_start();
echo $_POST["location"];
session_register("location");
require("table.php");
?>
Then, table.php creates an image and then calls another script rdrcfg.php...and within this script, I do the following:
$radar = $location;
Because other parts of this particular script are already set to use $radar. But it doesn't seem to pass the $location variable from the initial post.php script to the rdrcfg.php script. It does seem to go to the table.php script, because I printed it out and it appears.
Any suggestions?
Thanks so much!!!
I currently have a webform where the user enters the location of where they want to view the weather information from. Then, I use POST in PHP like this:
post.php script:
<?php
session_start();
echo $_POST["location"];
session_register("location");
require("table.php");
?>
Then, table.php creates an image and then calls another script rdrcfg.php...and within this script, I do the following:
$radar = $location;
Because other parts of this particular script are already set to use $radar. But it doesn't seem to pass the $location variable from the initial post.php script to the rdrcfg.php script. It does seem to go to the table.php script, because I printed it out and it appears.
Any suggestions?
Thanks so much!!!