tubs2222 Posted March 17, 2006 Share Posted March 17, 2006 Hey PHPFreak membersI have a question reguarding the URL of a page. On some site I see a url like "index.php?id=232" I already know an alternative way of doing this, but i think it would be better if it had the ?id=.Thanks Quote Link to comment https://forums.phpfreaks.com/topic/5130-url/ Share on other sites More sharing options...
AndyB Posted March 17, 2006 Share Posted March 17, 2006 [!--quoteo(post=355777:date=Mar 16 2006, 08:44 PM:name=tubs2222)--][div class=\'quotetop\']QUOTE(tubs2222 @ Mar 16 2006, 08:44 PM) [snapback]355777[/snapback][/div][div class=\'quotemain\'][!--quotec--]I have a question ...[/quote]OK, what's your question? Quote Link to comment https://forums.phpfreaks.com/topic/5130-url/#findComment-18216 Share on other sites More sharing options...
tubs2222 Posted March 17, 2006 Author Share Posted March 17, 2006 how do u make it so that a url turns into this "index.php?id=232" Quote Link to comment https://forums.phpfreaks.com/topic/5130-url/#findComment-18218 Share on other sites More sharing options...
keeB Posted March 17, 2006 Share Posted March 17, 2006 [!--quoteo(post=355785:date=Mar 17 2006, 02:04 AM:name=tubs2222)--][div class=\'quotetop\']QUOTE(tubs2222 @ Mar 17 2006, 02:04 AM) [snapback]355785[/snapback][/div][div class=\'quotemain\'][!--quotec--]how do u make it so that a url turns into this "index.php?id=232"[/quote]index.php:[code]<a href="index.php?id=10">click me</a><?phpif ( $_GET['id'] ) { print "<br><br>You said the ID was $id";}?>[/code][= Quote Link to comment https://forums.phpfreaks.com/topic/5130-url/#findComment-18232 Share on other sites More sharing options...
tubs2222 Posted March 17, 2006 Author Share Posted March 17, 2006 [!--quoteo(post=355802:date=Mar 16 2006, 10:41 PM:name=keeB)--][div class=\'quotetop\']QUOTE(keeB @ Mar 16 2006, 10:41 PM) [snapback]355802[/snapback][/div][div class=\'quotemain\'][!--quotec--]index.php:[code]<a href="index.php?id=10">click me</a><?phpif ( $_GET['id'] ) { print "<br><br>You said the ID was $id";}?>[/code][=[/quote]Oh i c... thanks :) Quote Link to comment https://forums.phpfreaks.com/topic/5130-url/#findComment-18274 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.