Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

CFFORM HELP !! - ENTERING A PASSWORD TWICE TO VERIFY

Status
Not open for further replies.

kingjjx

Programmer
Sep 18, 2001
181
US
Hi, I need help on a simple form im trying to create.

I have a registration form where a user can create a username and password then submit it and it will input it in the database.

However I want to add a text box for the user to RE-ENTER HIS PASSWORD to make sure he didnt do a typo. Basically it will look like this:

USERNAME:
PASSWORD:
RE-ENTER PASSWORD:


How do I check so the 2 passwords match ? how do i write this in the form and the action page ?
THANKS
-JON
 
Name the two formfields that contain the password and re-entered password whatever you want, say Password1 and Password2.

On your action page:

<cfif FORM.Password1 NEQ FORM.Password2>
...Passwords do not match
<cfelse>
...Passwords match
</cfif>

If you want a case-sensitive match, use the Compare() function.

-Tek
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top