Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

verifying password or emails

New Here ,
Sep 02, 2010 Sep 02, 2010

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??

TOPICS
Server side applications
542
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
Sep 02, 2010 Sep 02, 2010

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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Sep 03, 2010 Sep 03, 2010

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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
Sep 03, 2010 Sep 03, 2010

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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Sep 05, 2010 Sep 05, 2010

i already had the server side solution, but i just wanted something that would make things easier for the users.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
Sep 06, 2010 Sep 06, 2010
LATEST

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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
Sep 04, 2010 Sep 04, 2010

You can find the spry validation from the links provided in the previous post. View source code as advised.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines