try this:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">

<html>
<head>
        <title>Untitled</title>
</head>

<body>

<form name="myform" method="post" action="sendform1.cfm">

some text <input type="Text" name="sometext" value="">

<input type="submit" value="submit"> | <input type="button" value="submit -change 
action"XnClick="document.myform.action = 'sendform2.cfm';document.myform.submit()">

</form>

</body>
</html>


good luck,

Alexander Sicular
Technical Director, Information Technology
The Neurological Institute of New York
Columbia Presbyterian Medical Center
212.305.1318
[EMAIL PROTECTED]



-----Original Message-----
From: Nathan Stanford [mailto:[EMAIL PROTECTED]]
Sent: Friday, February 02, 2001 4:22 PM
To: CF-Talk
Subject: OT: JavaScript Submit


I am trying to remember how to post a form to different urls depending on
which button is clicked on.

Can someone help?
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
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

Reply via email to