hey guys... i have the following code in my application.cfm
<cflogin>
<cfif isDefined("FORM.logon")>
<cfswitch expression="#FORM.logon#">
<cfcase value="customer">authenticate and log in customer</cfcase>
<cfcase value="admin">authenticate and log in admin</cfcase>
</cfswitch>
</cfif>
</cflogin>
for some reason the var FORM.logon is not being recognised eg. it is there (can
see it on the form page and cf debugging). this is weird cause in the past this
has worked for me. the page processes as if the code above did not exist so
customer is not logged in.
can anyone see what i may be doing wrong.
form code...
<form name="login_info" method="post"
action="#CGI.script_name#?#CGI.QUERY_STRING#" onSubmit="return
validateLogin(this)" style="display:inline">
<input type="hidden" name="logon" value="customer">
<table border="0" cellspacing="0" cellpadding="5">
<tr>
<td width="100">Email:</td>
<td><input name="email" type="text" value="" size="40" maxlength="96"></td>
</tr>
<tr>
<td width="100">Password:</td>
<td><input name="password" type="password" value="" size="40"
maxlength="8"></td>
</tr>
<tr>
<td width="100"> </td>
<td><input name="submit" type="submit" value="Login" class="buttontext"></td>
</tr>
</table>
</form>
mike
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f
Archive:
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:320034
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe:
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4