I have a select tag that contains category of educational courses.
when the user selects any of items of category, he/she can see the list of information about category.
of course all of the information are read from database.
I really appreciate for your help
And I'm guessing your question is: How do I get the appropriate info about the selected category to the client?
1 - use JS to submit the form containing the select tag and a let php take the value of the select and re-send the page with the info you want added to it.
2 - use JS to submit an ajax request to do the same thing, but instead of a refresh of the page with php, JS gets the ajax response and populates the screen with the retrieved info.
Thank you so much, can you bring me an example?
The JS part can be avoided if you let the user make a selection and then hit a 'submit' button. Then it's simple php/sql code. I'll let you take a stab at it first.
This topic is now closed. New replies are no longer allowed.