I hope this helps !
Laure
<cfform action="" method="POST" enablecab="No" name="Form1">
<input type="Button" name="button1" value="Annuler"
onclick="javascript:function1();">
<input type="Button" name="button2" value=" Réinitialiser "
onclick="javascript:function2();">
</cfform>
<script language="JavaScript">
function function1()
{
document.Form1.action="page.cfm";
document.Form1.submit();
}
function function1()
{
document.Form1.action="page1.cfm";
document.Form1.submit();
}
</script>
----- Original Message -----
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, May 12, 2000 6:39 PM
Subject: 2 submit buttons on 1 form.
> Hello,
>
> I have a form that has two submit buttons on the same form. The first
> submit button updates the form by posting information to that same page.
> The second submit button passes that information to the next form in the
> series.
>
> The reason I want the first button is that I want the user to select a
> variable number of items to update. Once they click update, the
information
> adds itself to the form, and creates a new set of empty form elements.
>
> The problem I am running into, is that I can get both of these functions
to
> work independently, but once I put them together I cannot get one of the
> submit buttons to work. Only the first button on the page works.
>
> My question is, how can I have two form submit buttons that submit to 2
> different pages on one page? Any help is appreciated.
>
> Jonathan Garstin
> Software Engineer
> Tektronix Inc
> [EMAIL PROTECTED]
> 503-627-1994
>
> --------------------------------------------------------------------------
----
> Archives: http://www.eGroups.com/list/cf-talk
> To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or
send a message to [EMAIL PROTECTED] with 'unsubscribe' in
the body.
------------------------------------------------------------------------------
Archives: http://www.eGroups.com/list/cf-talk
To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.