Jump to content

Dropdown Assistance


Rauvnos

Recommended Posts

Greetings,

 

Before I ask, I just want to note that I'm *not* asking about a dropdown that populates values for another dropdown like a Country/State thing.

 

I'm looking to have a dropdown that selects it's values from a database (I can do that easy enough), and then when a value is selected, shows other fields from the database based on the value selected.

 

So, using a geographic example:

 

If I had a dropdown named "City" which grabbed cities from a database, when the user selected "Sacramento" from that dropdown, they'd see below it a number of statistics like population, state, data established, etc.  Just read-only text that gives them some info about their selection.

 

I'm not sure if this is something that I'd need AJAX for, and I haven't delved too far into that yet.  But if that's the best way, then I'll go pursue that.

 

Thanks

Link to comment
https://forums.phpfreaks.com/topic/123316-dropdown-assistance/
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.