Wrox Programmer Forums
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Dreamweaver (all versions) 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 November 23rd, 2004, 09:38 AM
Registered User
Join Date: Nov 2004
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default 2 Submit Buttons ... HOW?

I have a form and need to have 2 submit buttons on it and depending upon which button (both for updates)is pressed the database will update accordingly. The updates from both are to the same table.
Dreamweaver won't allow this, and I don't know where to start.

Can someone point me in the right direction?

Old November 23rd, 2004, 12:14 PM
Imar's Avatar
Wrox Author
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts

What do you mean with "Dreamweaver won't allow this"?

Are you using a DW Insert/ Update form?

Usually, you can check which button was pressed, like this:

If Request.Form("btnSubmit1") <> "" Then
  ' Button 1 was pressed
End If

If Request.Form("btnSubmit2") <> "" Then
  ' Button 2 was pressed
End If

Does this help?


Similar Threads
Thread Thread Starter Forum Replies Last Post
One form.. two submit buttons ashraf_gawdat HTML Code Clinic 1 July 28th, 2006 06:56 PM

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