Flash Guy,
If you just want links to a login form and a logout process, you don't need
the FORM tag. Just use anchor tags to create links to the appropriate
templates. You could display just the logon link until the user logs in,
then after they've logged in, display just the logout link:
<cfif not isDefined("session.username")>
<a href="login_form.cfm">Login</a>
<cfelse>
<a href="logout_process.cfm">Logout</a>
</cfif>
If you have your heart set on buttons, just replace the anchor tags with
something like this:
<input type="button" value="Login" onclick="javascript: location =
'login_form.cfm';">
~Dina
----- Original Message -----
From: "FlashGuy" <[EMAIL PROTECTED]>
To: "CF-Talk" <[EMAIL PROTECTED]>
Sent: Wednesday, March 12, 2003 10:35 AM
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
Your ad could be here. Monies from ads go to support these lists and provide more
resources for the community. http://www.fusionauthority.com/ads.cfm
Unsubscribe:
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4