Hello,
I am currently building a php website. My input form has a list box which I have populated using mysql. What i want to do is populate another list box using the first list box.
Both boxes will be pulling from a my sql database but one will use the first box as a filter. After doing some research in google I found that ajax would be the best way to do this. I however can not find a very simple step by step on how to do this.
I do understand that PHP is server side and i do understand that I need to reload the page. My problem is how do I force a reload on selection (obviously ajax is the way) and how to do it. Does anyone have any examples on how to do this?
I am currently building a php website. My input form has a list box which I have populated using mysql. What i want to do is populate another list box using the first list box.
Both boxes will be pulling from a my sql database but one will use the first box as a filter. After doing some research in google I found that ajax would be the best way to do this. I however can not find a very simple step by step on how to do this.
I do understand that PHP is server side and i do understand that I need to reload the page. My problem is how do I force a reload on selection (obviously ajax is the way) and how to do it. Does anyone have any examples on how to do this?
Comment