Hello

I have a category select menu, what I want is to when user select a category I have to repopulate the sub category select menu with items

can I do this with out AJAX, it does not matter if there is a another request

can I use a onchange to call another php function?

Recommended Answers

All 2 Replies

Yes. You can do it without using ajax. This is how it is. You populate one select box from the table. Then have an onchange event, which submits the page when an option is selected. Then get the posted selectbox value and populate the 2nd selectbox.

Thank you

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.