eleven0 Posted January 30, 2008 Share Posted January 30, 2008 I need help using $_GET variable. I read some stuff on some sites. But couldn't find anything useful. Can someone tell me what this variable does. I read that you can create pages like /index.php?id=6. How do i use this variable, i'm sure there are a lot of tutorial on this but couldn't find a good one. Quote Link to comment Share on other sites More sharing options...
pocobueno1388 Posted January 30, 2008 Share Posted January 30, 2008 Here is a good one http://www.tizag.com/phpT/postget.php Quote Link to comment Share on other sites More sharing options...
revraz Posted January 30, 2008 Share Posted January 30, 2008 In your example, if you passed a URL with index.php?id=6 inside of index.php you have a line of code $_GET['id'] and that will get the id=6 above and now 6 will be inside of $_GET['id'] Quote Link to comment Share on other sites More sharing options...
eleven0 Posted January 30, 2008 Author Share Posted January 30, 2008 Here is a good one http://www.tizag.com/phpT/postget.php I have checked that before, it didn't help much. In your example, if you passed a URL with index.php?id=6 inside of index.php you have a line of code $_GET['id'] and that will get the id=6 above and now 6 will be inside of $_GET['id'] can you explain a bit more? What exactly does it do when you do that? It gets id=6 but where do i define what that id=6 is? Let say that I got 500word paragraph and I want to put up a link that is linked to (index.php?id=6). I wanna show that 500word paragpraph without creating another page. Is this what it does? Or am i just totally wrong? Quote Link to comment Share on other sites More sharing options...
trq Posted January 30, 2008 Share Posted January 30, 2008 This example I posted for someone a while ago should give you the idea. 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.