Multiple Submit Buttons

  • Thread starter Thread starter Sypher
  • Start date Start date
S

Sypher

Is it possible to have 2 (two) submit buttons on FP form. One that submits
the information and then goes to page 1 and the other that submits and then
goes to page two.
 
Mike is correct, this would have to be done as something very custom. Forms
can technically only have one submit button. You can have two regular
buttons though that perform different actions. You can probably get a
client-side JavaScript to make this work though. I don't have any such
script, but you can try javascript.internet.com or dynamicdrive.com

Hope this helps,
Mark Fitzpatrick
Microsoft MVP - FrontPage
 
Instead of leaving it up to a user to select the appropriate button, you
should based the action on some value being entered or selected to then
determine which page the form would post to, but this is not something that
would be done with the FP Form Handler, would need to be processed by
server-side script such as ASP/VBScript, PHP, etc.

--

==============================================
Thomas A. Rowe (Microsoft MVP - FrontPage)
WEBMASTER Resources(tm)

FrontPage Resources, Forums, WebCircle,
MS KB Quick Links, etc.
==============================================
 
Let me better explaine what I would like to do.....

We are in the Debt Elimination / Mortgage business. I am setting up forms
that our consultants fill out that contain financial information about their
clients. I want them to be able to enter one of the clients credit card debt
and then have three buttoms at the bottom. One that they click if have
another credit card to enter, one that the click if the do NOT have another
and a clear button. This way I do not have to have a single form that has a
place for 20 debts. Each debt would have about 10 fields. That would be a
200 field form!

Is there a better way to do this?
 
Based on which radio button was selected, you can use VBScript to determine
what the next step (page) to display.

Let's can the radio button group: NextAction

then on the page you post to, you test NextAction

<%
If Request.Form("NextAction") = "Yes" then
Response.Redirect "CCDebit.asp"
Else
Response.Redirect "FinalPage.asp"
End If
%>

I don't know how I would handle clear.
--

==============================================
Thomas A. Rowe (Microsoft MVP - FrontPage)
WEBMASTER Resources(tm)

FrontPage Resources, Forums, WebCircle,
MS KB Quick Links, etc.
==============================================
 
Back
Top