I have a dropdown list and the selected item depends on the record the form is for. How do I allow PHP to determine which item in the list is selected according to how that row is configured?

Can you give me a little code snippet?

Ron

Hello ElegantElephant,

Please Provide Some Of Ur Code...or Post Ur Whole Problem Code here So we can figure it Out !! :)

Thanks !!

It seems the link which you gave is working fine and I didn't understand what we need to do.

I can give you one suggestion in your code, Instead of resubmitting the whole form data, make an Ajax call to update the second dropdown(Fill the second dropdown using Ajax call).

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.