Gel, try this:
first don't set the action attribute in your form tag, leave it blank or set
it to a default page.
Next, don't use a submit , use an input type= "button". What you want to do
is to set the action value in the JavaScript that accompanies the two
buttons. So the buttons should look something like this:
<input type="button"
value="Go to one page"
onClick="document.searchForm2.action='Destination_Page1.cfm';document.search
Form2.submit();">
<input type="button"
value="Go to another page"
onClick="document.searchForm2.action='Destination_Page2.cfm';document.search
Form2.submit();">
hth,
larry
--
Larry C. Lyons
ColdFusion/Web Developer
EBStor.com
8870 Rixlew Lane, Suite 204
Manassas, Virginia 20109-3795
tel: (703) 393-7930
fax: (703) 393-2659
Web: http://www.ebstor.com
http://www.pacel.com
email: [EMAIL PROTECTED]
Chaos, panic, and disorder - my work here is done.
--
> -----Original Message-----
> From: Angel Stewart [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, November 01, 2001 8:50 AM
> To: CF-Community
> Subject: Two submit buttons..javascript again sorry
>
>
> Umm..I know several of you have done this before.
>
> Single Form.
>
> One button to go one place..
>
> Other button to go another place..
>
> <!--- END Data Validation --->
>
> <input type="submit" value="Finished" > (to go to
> timeentry_summary.cfm)
> <input type="submit" value="Add More" > (to go to
> timeentry1_action.cfm)
>
> </FORM>
>
>
> Uhh..what's the javascript to do this again ?
>
> :)
>
> -Gel
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at
http://www.fusionauthority.com/bkinfo.cfm
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists