2 Submit options or OnClick Submit event 
Author Message
 2 Submit options or OnClick Submit event

I would like to have 2 separate submit options for a form. The same
variables would need to be passed, it is that the 2 different buttons would
need to have separate actions. Any ideas?
Thanks!


Sun, 22 Sep 2002 03:00:00 GMT  
 2 Submit options or OnClick Submit event
<form ID=frmName>
...
</form>
<input type=button onClick="ChangeAction('page1.asp')" value=One>
<input type=button onClick="ChangeAction('page2.asp')" value=Two>

<script language=VBScript>
sub ChangeAction (sPage)
    document.all("frmName").action = sPage
    document.all("frmName").submit
end sub
</script>



Mon, 23 Sep 2002 03:00:00 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. submit button and OnMouseOver and OnClick in NC4.x

2. Onclick with submit button

3. Submit and OnClick Question

4. onclick func causes form to submit

5. SUBMIT form with 3 different submit buttons - error

6. form submits hrefs images and submit buttons

7. Submitting Form WITHOUT Submit Button

8. Document wont submit using javascript:submit()

9. Form wont submit using javascript:submit()

10. submit button to operate another submit button

11. form submit using different submit buttons

12. Submit a document with an input name submit?

 

 
Powered by phpBB® Forum Software