Jump to content

Drop Down List help


Recommended Posts

Ok. I could really use some help on this.

 

I have a database populated with data {firstname, lastname, street, city, state}, and I have a drop down list wich lists the states in the database. SO when you pick the state, it shows the entries from that state in a table. However, I really need my second drop down (which is last name) to populate the same table (using a query)  to arrange them by the last name I choose. I really do not know how to achieve this. I have it written out on paper, what I need them to do, but I dont really know how to achieve this through php.

Link to comment
Share on other sites

If you're looking to do this without having the page re-load, you'll need to look into AJAX. There's an FAQ about this very thing here There's two posts - the first showing how do it without a database, the second with.

 

If you don't care about the page reload, you just need to have the form submit to itself - you can then grab the information for the second drop-down and fill it in.

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.