This content has been marked as final. Show 9 replies
Adobe Community Expert - Dreamweaver/ColdFusion
"future-architect" <email@example.com> wrote in message news:firstname.lastname@example.org...
> so i have people confirm their password on my websiet for registration. what would the php coding look like for this?
>the form to make sure the two fields are matching before the form is
>submitted. DW has a built in check for forms like this.
Of course you would also use PHP to validate it on the server again.
Never rely on client-side validation! It's just an optional feature,
which can be turned off, hence it doesn't provide any security. Proper
validation must always be done on the server. Always!
ok, so what is the js then?
From that same article:
Locate the SpryValidationConfirm.js and add it to your site, if you didn't do it already. You can find the SpryValidationConfirm.js file in the 'widgets/confirmvalidation' folder in the Spry zip.
But again, realize that this should be used in addition to server side validation, not instead of.
where do i get this code from? do i have to download something first?