sogang145 — 2013-10-02T03:39:48-04:00 — #1
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
ginerjm — 2013-10-02T09:11:27-04:00 — #2
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.
sogang145 — 2013-10-06T03:00:45-04:00 — #3
Thank you so much, can you bring me an example?
ginerjm — 2013-10-06T07:25:11-04:00 — #4
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.