try changing line 14:
$WA_fieldValuesStr = "".WA_SHA1Encryption(((isset($_GET["newpassword"]))?$_GET["newpassword"]:"")) ."";
to:
$WA_fieldValuesStr = "".WA_SHA1Encryption(((isset($_POST["newpassword"]))?$_POST["newpassword"]:"")) ."";
are you still being redirected to the users_Profile.php page?