Jump to content

instant change when select selectmenu


GRooVeZ

Recommended Posts

hi guys

 

i made a ranking for my league,

u can choose different rankings in multiple games and gamemodes

 

http://www.acidleague.com/League/ffarankings.php

 

now u have a select menu for the game, and then the gamemode

the select of the mode, contains all the modes for all games

 

what i want is, u fist select the game, and then u instantly get a dropdown with the modes correspondeding to that game

 

how do i even start with this?

 

my select menus are built like this

 

	$types=mysql_query("SELECT id,name FROM ffa_types");

while(list($id,$name)=mysql_fetch_row($types)){if ($id == $typeholder)

{

$typelist.="<option selected value='$id'>$name</option>\n";

}

else

{

$typelist.="<option value='$id'>$name</option>\n";

}}

$games=mysql_query("SELECT id,name FROM ffa_games");

while(list($id,$name)=mysql_fetch_row($games)){if ($id == $gameholder)

{

$gamelist.="<option selected value='$id'>$name</option>\n";

}

else

{

$gamelist.="<option value='$id'>$name</option>\n";

}

}

 

 

<form action='ffagamerankings.php' method='post'>

<select name='game'><option>Choose Game ...</option>$gamelist</select>

<select name='type'><option>Choose GameType ...</option>$typelist</select>

 

<input type='submit' value='Ranks' />[code=php:0]

 

 

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.