Copy link to clipboard
Copied
how can used dreamweaver to make a regestration form that has two password or email address fields, and somehow verify that both entries are the same. like on most websites??
Copy link to clipboard
Copied
regardless of scripting language the concept it the same:
Use server side validation and javascript so that users can view errors before submitting the form and the validation is passed if the client has javascript disabled. Create two form fields then use an if statement where form is submitted process validation then use and if statement where if ($_POST['password_field1'] == $_POST['password_field2']) submit form else display error message that password fields do not match! You can also use spry validation.
view source code of the following examples.
http://labs.adobe.com/technologies/spry/samples/validationwidgets/PasswordValidationSample.html
http://labs.adobe.com/technologies/spry/samples/validationwidgets/ConfirmValidationSample.html
http://labs.adobe.com/technologies/spry/samples/validationwidgets/TextfieldValidationSample.html
Copy link to clipboard
Copied
thanks a lot, but i need something that is client side not server side. i would have used spry validation but i've never used it before and i cant seem to fine it. am using cs3 dreamweaver.
Copy link to clipboard
Copied
Client side validation has its limits, especially when javascript is turned off. It is not advisable to try to doing anything secure - like logins and restricted pages - using that technique.
Why are you committed to client-side solution\?
Barry
Copy link to clipboard
Copied
i already had the server side solution, but i just wanted something that would make things easier for the users.
Copy link to clipboard
Copied
It should make no difference to the user whether client- or server-side. In fact, the user shouldn't be even aware of it. The only difference is that the user can defeat client-side solutions so easily by disabling javascript, thereby rendering the validation useless.
Copy link to clipboard
Copied
You can find the spry validation from the links provided in the previous post. View source code as advised.
Get ready! An upgraded Adobe Community experience is coming in January.
Learn more