So, what I'm trying to do is use a master listbox to tell a PHP script what table in an SQL database to access. However, I have three or four different forms on the page.
Here's my understanding of how to do this:
- Using Javascript, get the value from the listbox and put it into a js variable.
- Again using javascript, put the value into a hidden input box.
So,
var varName = document.form1.listbox.value
document.form2.hiddentxt.value = varName
Plus all the necessary tags (ex <SCRIPT>)
?
Thanks in advance.
Here's my understanding of how to do this:
- Using Javascript, get the value from the listbox and put it into a js variable.
- Again using javascript, put the value into a hidden input box.
So,
var varName = document.form1.listbox.value
document.form2.hiddentxt.value = varName
Plus all the necessary tags (ex <SCRIPT>)
?
Thanks in advance.