Hi hunkyjack,
For a start, I would check out http://hotwired.lycos.com/webmonkey/01/48/index2a_page6.html?tw=programming as this is where I got hold of this info! It's really very good. Anyway, the way that the variables are pinned onto the URL is by a normal HTML form.
This would look something like this:-
<HTML>
<HEAD><Title>Game Form</Title></HEAD>
</HEAD>
<BODY>
<Form Method=Get Action="play.php">
What game would you like to play?<BR>
<Select Name="game">
<Option Value=stan>Stan
<Option Value=space>Space
<Option Value=whatever>Whatever
</Select>
<BR>
<Input Type=Submit Value="Play the Game!!!"
</Form>
</BODY>
This little file will create a pull-down menu with the name "game". The important factor here is the 'Method=Get'. This pins the variable onto the end of the URL instead of hiding it (as would happen if Method=Post). If you were writing this in PHP, you could even use $PHP_SELF to 'get' it from itself. In this instance, the URL would look like: www.whateveryourdomainis.com/play.php?game=stan Inside your PHP file, you could refer to $game as a normal variable. This means that you could check:
if($game==stan){
echo "<Applet Code=stan.class width=300 height=250>"
}
if($game==space){
echo "<Applet Code=space.class,etc>"
}
I hope this helps you out anyway.🙂
DeShark.
P.S. Please visit my site at
http://www.progtutorials.buildtolearn.net for Programming help. Thanks.