Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Web Programming > HTML > HTML Code Clinic
HTML Code Clinic Do you have some HTML code you'd like to share and get suggestions from others for tweaking or improving it? This discussion is the place.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the HTML Code Clinic 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 July 28th, 2006, 06:47 PM
Authorized User
Join Date: Jul 2006
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
Default One form.. two submit buttons

I have a form which has two submit buttons. I did so because I want every button to do something different than the other, that means when I click one I should be taken to a page, and when I click the other I should be taken to another page. It doesn't seem to be possible, because the page is already defined in the (action) attribute, but maybe there is another way. Is there one?

And if there is not, is there an ability to distinguish between clicking any of the two buttons, like giving a field a certain value when one is clicked and another value when the other is clicked?

Old July 28th, 2006, 06:56 PM
Friend of Wrox
Join Date: Jun 2003
Posts: 425
Thanks: 0
Thanked 3 Times in 3 Posts

See if this helps.


Similar Threads
Thread Thread Starter Forum Replies Last Post
2 Submit Buttons ... HOW? Benno Dreamweaver (all versions) 1 November 23rd, 2004 12:14 PM

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