[web] How to add ?id=... stuff

Started by
3 comments, last by Slaru 19 years, 7 months ago
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
Advertisement
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?)
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):
<?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
Well,
I thought of another way of doing what I had in mind without the need for ?id... stuff. Thanks anyways, for I know just one more thing.

Slaru

This topic is closed to new replies.

Advertisement