[web] PHP: Passing Multiple Variables in a URL

Started by
2 comments, last by Sonnenblume 17 years, 6 months ago
Heya I can quite happily pass a variable in a url to another page, but how do you pass multiple variables? How would you modify the example below? example.html contains.... <ahref="test.php?var=mymessage">test link and test.php contains <?php echo $_GET['bg']; ?>
Advertisement
Like this:

http://www.gamedev.net/community/forums/post.asp?method=reply&topic_id=419614

using the & to add on more parameters. I use $_REQUEST['method'] etc also.
test link

<?php
echo $_GET['var'];
echo $_GET['var2'];
?>
[size="1"]
thanks chaps :)

This topic is closed to new replies.

Advertisement