Jump to content

Drop down menu reading from another


essjay_d12

Recommended Posts

I want to have to drop down menus

the first......
[code]
<select name="drop1">
    <option value="3">Maths</option>
    <option value="6">Biology</option>
    <option value="9">English</option>
  </select>
[/code]

then i want my second  drop down menu (to be underneath the one above) to be built dynamically from the one above (both on the same .php page)

if maths was selected then it would search the database for id=3 and then present the modules within this subject in the second drop down for selection.

But how do i go about extracting the value from the first drop down menu and update the second drop down menu dynamically whenever the first one is altered.

Thanks

d
Link to comment
https://forums.phpfreaks.com/topic/35514-drop-down-menu-reading-from-another/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.