[web] How to add ?id=... stuff
Hello,
How can I make my pages except inputs like www.whatever.com/home.html?id=... ? Is this possible with just plain html, or do i need some sort of script like asp or php? I know html and java. Is this possible?
Thanks,
Slaru
Those are generally given as data to a sever-side script.
so, yeah. php. asp. perl. Some other language called through CGI.
Java might even work. (isn't there a j2ee or something?)
so, yeah. php. asp. perl. Some other language called through CGI.
Java might even work. (isn't there a j2ee or something?)
Java does work, but only in conjunction w/ some server-side scripting (php, asp, etc...)
Here's how you'd do it in PHP:
(index.php):
Here's how you'd do it in PHP:
(index.php):
<?php$get = $_REQUEST["name"];if(!$get){ echo("<a href=\"index.php?id=gamedev\">Gamedev.net</a>");} else{ echo("get = $get");}?>
Is there any other way of doing this sorta thing, but possibly not in the same form, and not need a server side script (my hosting doesn't support these)?
Slaru
Slaru
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement