Pi_Mastuh Posted April 15, 2007 Share Posted April 15, 2007 How do you send a variable to another page when you're going through a text link? Link to comment https://forums.phpfreaks.com/topic/47133-sending-a-variable-through-a-link/ Share on other sites More sharing options...
neel_basu Posted April 15, 2007 Share Posted April 15, 2007 Go to page2.php?var=value And In page2.php <?php echo $_GET['var']; ?> Link to comment https://forums.phpfreaks.com/topic/47133-sending-a-variable-through-a-link/#findComment-229832 Share on other sites More sharing options...
anthylon Posted April 15, 2007 Share Posted April 15, 2007 Or make your link: page2.php?var1=value&var2=value&var3=value And In page2.php <?php echo $_GET['var1']; echo $_GET['var2']; echo $_GET['var3']; ?> The same like neel_basu told you but I was thinking maybe you could be confused if you need more variables. Respect neel_basu! Please don't understand it wrong. Link to comment https://forums.phpfreaks.com/topic/47133-sending-a-variable-through-a-link/#findComment-229857 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.