Wrox Programmer Forums
Javascript How-To Ask your "How do I do this with Javascript?" questions here.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Javascript How-To section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old September 16th, 2003, 01:47 PM
Friend of Wrox
Join Date: Jun 2003
Posts: 141
Thanks: 0
Thanked 0 Times in 0 Posts
Default Multiple Submit

Is there a way to have 2 submit buttons on a page with each one sending the user to a different page? I want the form data to either be sent to itself (the same page) if an update button is clicked and I want the form data to all goto another page if they press the continue button.

Old September 16th, 2003, 06:21 PM
Friend of Wrox
Join Date: Jun 2003
Posts: 344
Thanks: 0
Thanked 1 Time in 1 Post

Just had the two buttons set the action :

<form name="myForm" method="post">
<input type="button" value="Save"
onclick="document.myForm.action='save.asp';documen t.myForm.submit();">
<input type="button" value="Continue" onclick="document.myForm.action='continue.pl';docu ment.myForm.submit();">

Similar Threads
Thread Thread Starter Forum Replies Last Post
Multiple function in submit button sougataroy BOOK: Beginning ASP 3.0 2 August 16th, 2006 06:30 PM
Multiple forms one submit x_ray Classic ASP Basics 7 January 3rd, 2006 07:12 PM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.