GRooVeZ Posted April 20, 2012 Share Posted April 20, 2012 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] Quote Link to comment https://forums.phpfreaks.com/topic/261287-instant-change-when-select-selectmenu/ Share on other sites More sharing options...
chriscloyd Posted April 20, 2012 Share Posted April 20, 2012 you have the code started but you are going to want a jquery or ajax function that dynamically loads your information for the next select menu Quote Link to comment https://forums.phpfreaks.com/topic/261287-instant-change-when-select-selectmenu/#findComment-1338970 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.