I bet you're using the Enter key rather than clicking on the submit button. If you do that, the submit field will not be passed as a form field.
Your best bet is to either test directly on "password" or insert a hidden input and test on that field. HTH, Rob -----Original Message----- From: Bobby Tomato [mailto:[EMAIL PROTECTED] Sent: Thursday, May 24, 2007 1:11 PM To: CF-Talk Subject: password form not working -- strange 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> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Upgrade to Adobe ColdFusion MX7 The most significant release in over 10 years. Upgrade & see new features. http://www.adobe.com/products/coldfusion?sdid=RVJR Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:279150 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

