11Tami Posted February 21, 2007 Share Posted February 21, 2007 Hi, someone gave me this code but never told me what the show in the php and in the link address is supposed to do? Does anybody know? Thank you very much. <?php $show = $_GET['show']; if($show == 1){ print "<a href=\'http://www.website.com/page.php?show=1\'>TEST LINK</a>\n"; } ?> Quote Link to comment Share on other sites More sharing options...
tom100 Posted February 21, 2007 Share Posted February 21, 2007 Looks like the $_GET['show'] variable is being used as a switch. Saying that if that variable is sent in the browser, it will show that link. Quote Link to comment Share on other sites More sharing options...
Jessica Posted February 21, 2007 Share Posted February 21, 2007 That's not how it was meant to work. The code I originally gave you was example code of how to display text based on a link clicked. Quote Link to comment Share on other sites More sharing options...
11Tami Posted February 21, 2007 Author Share Posted February 21, 2007 Jesirose, good to see you. Please tell me what your suggestion means, I have no idea at all. It doesn't have to completely work, I just need to be headed in the right direction. I won't know if I am going in the right direction, if I don't understand what it is. I have no clue what your code suggestion is supposed to do. Please let me know, thank a lot. Quote Link to comment Share on other sites More sharing options...
Jessica Posted February 21, 2007 Share Posted February 21, 2007 it says if the variable $show is set in the url to the value of 1, show this extra text. Quote Link to comment Share on other sites More sharing options...
11Tami Posted February 22, 2007 Author Share Posted February 22, 2007 OK thank you very much! I'll try to move forward from here. Thanks for sending me in certain direction! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.