This is probably a very basic javscript question but here it goes. say i have 2 forms which are dynamically generated
<form name=test1 method=get action=insertaction>
<input type=text name=desc value=2>
<input type=button onclick="document.test1.submit();" value=submit>
</form>
<form name=test2 method=get action=insertaction>
<input type=text name=desc value=3>
<input type=button onclick="document.test2.submit();" value=submit>
</form>
Is there anything wrong with this code on the two forms? They seem to be passing null to the action