Did you make sure that you didnt type a space after the password? Also, try
setting your password form to a default value of nothing..like value=""
> Strange problem... I'm trying to create a simple password form. Once
> the user presses the submit button, the ColdFusion code has a
> conditional to see if the field contained the password or not, and
> then execute some code.
>
> Here's what's happening: if I type in the password, the conditional
> doesn't execute, but if I copy/paste the password, it works fine. Just
> to make sure, I made the password something really simple so it's not
> a typo error ("open").
>
> I've tried this on two different ColdFusion servers, and I get the
> same result. I've tried it using both IE7 and Firefox 2.
>
> Here's the code that I have, I've simplified it down (the file is
> called test.cfm):
>
> <cfcode>
>
> <cfparam name="msg" default="">
>
> <cfif IsDefined("Form.Submit")>
> <cfif Form.password EQ "open">
> <cfset msg = "Success!">
> </cfif>
> </cfif>
>
> <form method="post" action="test.cfm">
> <input name="password" type="password" size="17" id="password" /><br
> />
> <input name="Submit" type="submit" id="Submit" value="Submit" />
> </form>
>
> <p>The password is "open" </p>
> <p><cfoutput><b>#msg#</b></cfoutput></p>
>
</cfcode>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
ColdFusion MX7 by AdobeĀ®
Dyncamically transform webcontent into Adobe PDF with new ColdFusion MX7.
Free Trial. http://www.adobe.com/products/coldfusion?sdid=RVJV
Archive:
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:279146
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4