This may be very rudimentary. Basically I am making a college search tool. I have an html form using and a list of options for choice of college, then a list of options for choice of departments. What I would like to do is if the user selects “The college of liberal arts” I want the second options list of departments to only display departments within the college of liberal arts. Is there a way to do this? I know its possible with javascript, but am looking for something more simple if it exists.
[php]
College: |
<? echo “<option value=”">"; while ($row = mysql_fetch_assoc($collegeresult)) { // GET the college column from every row. $college_menu=$row[“COLLEGE”]; // $selected=(($table_mode==True) && ($college == $college_menu)) ? “SELECTED " : “” ; $options.=”<OPTION “. $selected. “VALUE=”$college_menu”>".$college_menu; } echo $options.="";
|