Change Password form not working
I followed the instructions to build a form to change a user's password but it doesn't change the password even though it redirects to the correct page after the submit button is pushed. The code is attached.
I followed the instructions to build a form to change a user's password but it doesn't change the password even though it redirects to the correct page after the submit button is pushed. The code is attached.
the code looks correct.
try adding the following at line 1:
<?php if(!session_id()) session_start(); ?>
I added the code you suggested (I think). Now the page doesn't redirect AND no new password is posted. Arrrrgh! (new code attached).
the page is not redirecting because the there is a blank spacee at the end of the code I had you add:
"<?php if(!session_id()) session_start(); ?> "
remove the blank space from the end of line 1 fix the redirect problem:
"<?php if(!session_id()) session_start(); ?>"
to troubleshoot the update further, add the following code after the <body> tag:
<pre><?php var_dump($_SESSION); ?></pre>
This will write the contents of the session array to the screen to help me see what is going wrong.
Please post back the session information that is written to the screen.
Following is the session information from the screen as you requested:
array(11) {
["test"]=>
string(4) "test"
["id"]=>
string(1) "4"
["WAVT_usersRegistration_025_Errors"]=>
string(0) ""
["users_id"]=>
int(21)
["NewPW"]=>
string(9) "ACIdArxZm"
["WADbSearch1_users_Results"]=>
string(29) " AND (last_name LIKE '%Fox%')"
["random_answer"]=>
int(69)
["captcha_Registration_group_Security_code"]=>
string(5) "KYX56"
["WAVT_DynamicPagePublic_Errors"]=>
string(0) ""
["WAVT_usersRegistration2_Errors"]=>
string(0) ""
["WAVT_changePassword_Errors"]=>
string(0) ""
}
Thanks
Cal
I have created a support ticket so we can look into this issue further.
To view and edit your support ticket, please log into your support history:
login.php
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.