gple Posted June 29, 2007 Share Posted June 29, 2007 I am using a free host that has been upgraded to PHP5 called 65gb.com. Has anyone used this host and noticed that when I try this on one page: <a href=prod.php?sub=beef>Beef</a> which creates a link and when I click on the link I am supposed to see "Beef". The php script on the prod.php page is: echo $sub; I dont see me doing anything wrong. Any suggestions. Quote Link to comment Share on other sites More sharing options...
wrathican Posted June 29, 2007 Share Posted June 29, 2007 you need to use this: $sub = $_GET['sub']; the $_GET[''] gets the value of the 'sub' variable and puts it into the variable sub 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.