Hello cf-talk,

A mac user (HTTP_USER_AGENT = Mozilla/4.0 (compatible; MSIE 4.5;
Mac_PowerPC))

This error message is caused by the second line of a page called
authenticate.cfm!


An error occurred while evaluating the expression:

 #button# is " L O G I N "

 I'm using this as the first few lines:

<cfset DSName = "#Application.DSN#">
<cfif #button# is " L O G I N ">
<cfset TimeOut = "#Now()#">
<CFQUERY DATASOURCE="#DSName#" NAME="Check">
SELECT * FROM guides
        WHERE Password = '#Form.Password#' 
<CFIF #Password# IS NOT "">
        AND Password = '#Form.Password#'
</CFIF>
<CFIF #Login# IS NOT "">
        AND Login = '#Form.Login#'
</CFIF>
</CFQUERY>


How could something so simple cause an error?

the page that leads to this has this for a form:

<form action="authenticate.cfm" method="POST">
<p>&nbsp;<p>
  <table width="35" border="0" cellspacing="4" cellpadding="4" align="CENTER" 
valign="MIDDLE">
    <tr>
      <td> <font face="Verdana, Arial, Helvetica, sans-serif">Login: </font>
<input type="Text" name="Login" align="RIGHT" size="20"><br>
        <font face="Verdana, Arial, Helvetica, sans-serif">Pass:</font>
<input type="Password" name="Password" align="RIGHT" size="20">
<center>
<cfoutput>
<input type="Hidden"
       name="Account"
       value="#NOW()#">
</cfoutput>
<cfoutput>
<INPUT TYPE="Hidden" NAME="LastLogin" SIZE="50" MAXLENGTH="40" VALUE="#Now()#">
</cfoutput>
<input type="Submit"
       name="Button"
       value=" L O G I N ">
</td></tr></table>
</form>



Best regards,
 Jeff Fongemie                          mailto:[EMAIL PROTECTED]
------------------------ 
Internet Guns For Hire
(603) 356-0768



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to