Password Change not working
I have installed the password change option exactly as the Tutorial instructed. However when you change your password there are no errors but the database does not update.
I have installed the password change option exactly as the Tutorial instructed. However when you change your password there are no errors but the database does not update.
1) Your change password form element has a space in the name, you cannot have spaces in the name of form elements:
<input type="text" name="Change Password" id="Change Password" />
change that to remove the space:
<input type="text" name="ChangePassword" id="ChangePassword" />
2) try adding the following at line 1 of the page:
<?php if(!session_id()) session_start(); ?>
After making the changes you suggested the password field in the database now gets updated but it is empty.
1) you password field has a space in the name:
<input type="text" name="Change Password" id="Change Password" />
it should be:
<input type="text" name="ChangePassword" id="ChangePassword" />
2) In the update record behavior, you have bound the password column to the FILES collection:
$WA_fieldValuesStr = "".((isset($_FILES["Change"]))?$_FILES["Change"][""]:"") ."";
instead of the POST Collection:
$WA_fieldValuesStr = "".((isset($_POST["ChangePassword"]))?$_POST["ChangePassword"]:"") ."";
Thanks that did it.
The security assist wizard created the update record behavior. I did not change this or see where i could have made a choice that would have changed it.
Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.
These out-of-the-box solutions provide you proven, tested applications that can be up and running now. Build a store, a gallery, or a web-based email solution.