Jump to content
  • Advertisement
Sign in to follow this  
Slaru

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

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

If you intended to correct an error in the post then please contact us.

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 this post


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

Share this post


Link to post
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 this post


Link to post
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 this post


Link to post
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 this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!