Skip to main content
Inspiring
June 14, 2012
Question

Email/password validation

  • June 14, 2012
  • 1 reply
  • 528 views

I've got several books on Dreamweaver, yet I can't seem to find an explanation for this.  All I want to do is validate that the user's password and email match in an account creation form.  All I can find is how to do it with spry, but I figure there has to be a simpler way of doing this common thing.  I'm using Dreamweaver CS4 and coldfusion 8.

thanks,

Mike

This topic has been closed for replies.

1 reply

Participating Frequently
June 14, 2012

I'm not sure how much simpler than Spry you will find, since that is auto generated by DW. If you want to also do server side validation (and you always should) then you need to code by hand as DW does not handle this. It's very simple, but I don't know CF so can't provide you with specific code. You simply need an IF statement that compares the two fields and branches to the database insert statement if they match, or displays an error if they don't. If you are not familiar with branching and comparison operators, then any book (or web resource) on CF should be consulted. If you want to code by hand, you need to have some basic programming skills.