Eugene Posted March 14, 2006 Share Posted March 14, 2006 I have looked everywhere and could not find it anywhere!I want to know how do you do the [code]?id=[/code]Please tell me!Also, how can i Make it like random, for example:?id=42then i add something else via website home and it turns?id=43 Quote Link to comment https://forums.phpfreaks.com/topic/4982-help-me-i-am-newb/ Share on other sites More sharing options...
AV1611 Posted March 14, 2006 Share Posted March 14, 2006 Wow, where to begin... Quote Link to comment https://forums.phpfreaks.com/topic/4982-help-me-i-am-newb/#findComment-17578 Share on other sites More sharing options...
keeB Posted March 14, 2006 Share Posted March 14, 2006 I WANT TO DO THE.. no wait :)[code]<?print $_GET['id'];?>[/code]Save that as index.php, and go index.php?id=38092.GOOD LUCK! Quote Link to comment https://forums.phpfreaks.com/topic/4982-help-me-i-am-newb/#findComment-17587 Share on other sites More sharing options...
Eugene Posted March 15, 2006 Author Share Posted March 15, 2006 Wow that actually works!How can I make it an actual page though instead of an id thing, like when i go to for example index?id=8249It will display an id instead of the id number. Quote Link to comment https://forums.phpfreaks.com/topic/4982-help-me-i-am-newb/#findComment-17638 Share on other sites More sharing options...
shortj75 Posted March 17, 2006 Share Posted March 17, 2006 this is how you can have a page display (you can have 1 page display like as many different pages as you want by ?id= i will show you belowhere is you link on the first page[code]//here are your links just copy and past them to a page<a href=test.php?id=3145>testlink1</a> <a href=test.php?id=3146>testlink2</a> <a href=test.php?id=3147>testlink3</a>[/code]and here is your output page name it test.php[code]//test.php<?error_reporting(E_ERROR);if($_GET['id']==3145){print "Hello Everyone";}if($_GET['id']==3146){print "Good bye cruel world";}if($_GET['id']==3146){print "cool it really works";}?>[/code]or you canput the links on the same page to display something different for each choice(same name test.php)[code]//test.php<a href=test.php?id=3145>testlink1</a> <a href=test.php?id=3146>testlink2</a> <a href=test.php?id=3147>testlink3</a><BR><?error_reporting(E_ERROR);if($_GET['id']==3145){print "<body bgcolor=red>Hello Everyone";}if($_GET['id']==3146){print "Good bye cruel world";}if($_GET['id']==3147){print "<body bgcolor=blue>cool it really works";}?>[/code]with this little script you can make your visitors think they are going to many different pages when they really only going to one i hope this helps answer your question Quote Link to comment https://forums.phpfreaks.com/topic/4982-help-me-i-am-newb/#findComment-18325 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.