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