OrganizedChaos
MIS
Hi there, I have a form that I am working on that uses PHP to populate 2 listboxes with info from a mySQL db.
in each listbox, you can select a item and click a button (calls a JS function) and move the selected item to a listbox directly below it.
Now, the top left listbox has a drop down select box above it that onChange calls a JS function that changes part of the URL to display different data in that listbox from the db.
My question: When this drop down is selected, it refreshes the page and any thing that was moved into the lower boxes is removed.
I was thinking I could use cookies to store the data in the lower boxes if the user refreshes the page, but I was wondering if I could add any JS to the onChange event that would select and grab the data in the lower boxes and pass it back to the same form?
I also have a submit button on this form that when clicked passes all info from the lower boxes to another php form..
Does that make sense? Any ideas?
Thanks..
Mike
in each listbox, you can select a item and click a button (calls a JS function) and move the selected item to a listbox directly below it.
Now, the top left listbox has a drop down select box above it that onChange calls a JS function that changes part of the URL to display different data in that listbox from the db.
My question: When this drop down is selected, it refreshes the page and any thing that was moved into the lower boxes is removed.
I was thinking I could use cookies to store the data in the lower boxes if the user refreshes the page, but I was wondering if I could add any JS to the onChange event that would select and grab the data in the lower boxes and pass it back to the same form?
I also have a submit button on this form that when clicked passes all info from the lower boxes to another php form..
Does that make sense? Any ideas?
Thanks..
Mike