So -- the script below displays field data from formtwo when the submit button of formone is clicked. I'd like to include the data from formtwo in my formone submission. Can this be done, if so how?
There are multiple submits on the real page - I don't want to replicate the selectbox for each of them.
<script language=Javascript> function CheckForm(theForm) { f2 = document.formtwo.test.value; f1 = document.formone.selectone.value; alert('number ' + f1); } </script> <p><form name=formone id=formone action=# method=get> <select name=selectone> <option value=one>one</option> <option value=two>two</option> </select> </form> <h1> <p> <form name=formtwo id=formtwo action=# method=get onSubmit='return CheckForm(this)'> <input type=submit name=test value=submit> </form>
There are multiple submits on the real page - I don't want to replicate the selectbox for each of them.