Using the <button> tag as a submit button.

liunx

Guest
Hey guys, I'm trying to obtain input values from a form in one page and submit them to another. The problem is that I have 2 submit buttons that I want to call different scripts depending on which was selected, BUT they need to be able to share information contained in the form. Does anyone know how I can do this? I used to do this some way using <button method='post' onClick='http//.....'> </button> but this doesn't seem to be working.<!--content-->you have to use javascript to process form data with the button type of input. Something like:<br />
<br />
<input type="button" value="Submit" onClick="this.form.submit()"><br />
<br />
you also need to use a form tag (not a button tag like you posted):<br />
<br />
<form method="post" action="...."><br />
input fields<br />
<input type="button" value="Submit" onClick="this.form.submit()"><br />
</form><!--content-->
 
Back
Top