Put an input of "button" type outside your form which calls a javascript to
change the url. Something like:
<script language="javascript">
function gotologoutpage() { window.location = "logout.cfm"; }
</script>
<input type="button" value="Logout" style="background:6C993F"
class="loginbutton" onclick="javascript:gotologoutpage()">
There's probably a better way to do this, but the above springs quickly to
mind.
-- Ben Doom
Programmer & General Lackey
Moonbow Software, Inc
: -----Original Message-----
: From: FlashGuy [mailto:[EMAIL PROTECTED]
: Sent: Wednesday, March 12, 2003 11:35 AM
: To: CF-Talk
: Subject: <input tag
:
:
: Hi again,
:
: I have a form with two <input> tags. The "Login" button executes
: the file assigned to the <form> tag.
: How can I have the "Logout" button run a template file rather
: then the <form>?
:
: <form action="index.cfm" method="post">
:
: <input type="submit" value="Login" style="background:6C993F"
: class="loginbutton"> <!--- THIS EXECUTES THE ABOVE <form> --->
:
:
: <input type="submit" value="Logout" style="background:6C993F"
: class="loginbutton"><!--- I WANT THIS TO EXECUTE THE FILE
: "logout.cfm" --->
: </form>
:
:
: ---------------------------------------------------
: Colonel Nathan R. Jessop
: Commanding Officer
: Marine Ground Forces
: Guatanamo Bay, Cuba
: ---------------------------------------------------
:
:
:
:
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription:
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Signup for the Fusion Authority news alert and keep up with the latest news in
ColdFusion and related topics. http://www.fusionauthority.com/signup.cfm
Unsubscribe:
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4