I'm trying to pass a variable across a few pages and am having some trouble.
On my first page, "game_login.php", I have an array of Agency Names that is created in real time from
a database of Agencies. I loop the array through a drop down select menu.
The user chooses his Agency from the drop down menu and clicks on the form's submit button. The form's
action is set to "createnewid.php". The Agency Name they chose along with their first and last name
is passed to "createnewid.php".
On "createnewid.php", I use "include" at the end to call "game_selection.php". The problem is that my
variables are not passed to "game_selection.php".
If I put a form on createnewid.php with the action set as "games_selection.php" (instead of using "include"),
the variables are passed to "games_selection.php" as desired.
Isn't there a way to pass the variable without having to submit them via a form?
I have had partial success using include as follows:
include("http://www.nanmckay.com/pages/interactive_learning/games/game_selection.php?AgencyName=$AgencyName&FirstName=$FirstName");
The problem here is that only the first name of the Agency gets passed. If the Agency chosen was Bara
Design, only the "Bara" gets passed.
I've tried using hidden fields on createnewid.php but that hasn't worked.
Any ideas?
Thanks very much for any help,
Rick