html - PHP Auto update selectbox based on 1st selectbox -
i have 2 selectboxes <h3>results</h3> <select id="register_form" name="sport" /> <option value="rugby">rugby</option> <option value="cricket">cricket</option> <option value="football">football</option> </select> <?php echo'<select name="match">'; echo'<option value="'.$row['event_id'].'">'.$row['team1'].' vs '.$row['team2'].'</option>'; echo'</select>'; ?> <input id="register_form" type="submit" value="display" name="submit" /> user searches result by: selecting sport type in 1st selectbox , in 2nd selectbox option values populated based on sport type. is possible in php without user having first press submit $_post value of sport type? what best option...