Passing a variable on to the next page...

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
Jim
Forum Contributor
Posts: 238
Joined: Fri Apr 19, 2002 5:26 am
Location: Near Austin, Texas

Passing a variable on to the next page...

Post by Jim »

I've got the whole variable thing figured out at:

http://www.aoe2.com/!scripts/filesubmis ... p?map=none

However, how do I get the variable that is in the above URL to pass onto the submission page?

Thanks!
jason
Site Admin
Posts: 1767
Joined: Thu Apr 18, 2002 3:14 pm
Location: Montreal, CA
Contact:

Post by jason »

Just call it like this:

Code: Select all

$_GETї'map']
and use it like a normal variable.
Jim
Forum Contributor
Posts: 238
Joined: Fri Apr 19, 2002 5:26 am
Location: Near Austin, Texas

Post by Jim »

I have no clue what you mean by that :(
User avatar
mikeq
Forum Regular
Posts: 512
Joined: Fri May 03, 2002 3:33 am
Location: Edinburgh, Scotland

Post by mikeq »

Must have been the first line of your post
I've got the whole variable thing figured out at
that made us assume you knew what you were talking about, silly us :wink: .

In the page you call a variable $_GET['map'] is now available for you to use, i.e.

<?PHP
Print "The variable is ".$_GET['map'];
?>
Post Reply