ninedoors Posted May 21, 2008 Share Posted May 21, 2008 If you have a url like www.example.com/members/users.php and then you add a ? at the end and some variable equal to a value, so you might have www.example.com/members/users.php?id=3 My question is where can I read up on this function or whatever you call it. I have had a couple times that I would have liked to use this type of thing but I have had no idea the structure or how to use it. Can someone point me in the right direction. Thanks Nick Quote Link to comment Share on other sites More sharing options...
AndyB Posted May 21, 2008 Share Posted May 21, 2008 GET - http://www.w3schools.com/PHP/php_get.asp Quote Link to comment Share on other sites More sharing options...
ninedoors Posted May 21, 2008 Author Share Posted May 21, 2008 Thanks Andy. I'll check it out. Quote Link to comment Share on other sites More sharing options...
ninedoors Posted May 21, 2008 Author Share Posted May 21, 2008 Andy, Can I use a variable in the url? Like www.example.com/members/users.php?id=$new or something to that affect. Assuming $new is set before the url obviously. Nick Quote Link to comment Share on other sites More sharing options...
AndyB Posted May 21, 2008 Share Posted May 21, 2008 It isn't 100% clear from that page, but you don't actually need a FORM. SImply clicking a link like newpage.php?name=wombat works the same way ... $GET['name'] equals wombat in newpage.php So your answer is "yes" 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.