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

This topic is 4853 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

Recommended Posts

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

Share on other sites
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?)

Share on other sites
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");}?>

Share on other sites
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

Share on other sites
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

Share on other sites

This topic is 4853 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

Create an account

Register a new account

• Forum Statistics

• Total Topics
628645
• Total Posts
2984015

• 9
• 9
• 10
• 21
• 20