Jump to content

URL


tubs2222

Recommended Posts

[!--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>
<?php

if ( $_GET['id'] ) {
    print "<br><br>You said the ID was $id";
}

?>
[/code]
[=
Link to comment
https://forums.phpfreaks.com/topic/5130-url/#findComment-18232
Share on other sites

[!--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>
<?php

if ( $_GET['id'] ) {
    print "<br><br>You said the ID was $id";
}

?>
[/code]
[=
[/quote]

Oh i c... thanks :)
Link to comment
https://forums.phpfreaks.com/topic/5130-url/#findComment-18274
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.