Help me with the Change password.php any one

01/09/2011 18:07 stedabest321#1
ok well i have the Changepw stuff for my website here are the link

[Only registered and activated users can see links. Click Here To Register...]

Enter the search user name Blank thats an account registerd

then click find username then just click change password on the next page
and it gives me an error.

can any one help me or suply me with a Changepassword stuf that they have or use, or point me in the right way please ? thanks
01/09/2011 18:25 MoŽtalKing#2
[Only registered and activated users can see links. Click Here To Register...]
01/09/2011 19:33 stedabest321#3
Ok when i use the Change password i get this error But it allworks ok

Quote:
Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at C:\xampplite\htdocs\changepw.php:2) in C:\xampplite\htdocs\inc\class.captcha.php on line 46
I can't understnad what it is the part thats number 46 is

Quote:
if($hash1!= $curpass)
Here is all of it

PHP Code:
<script type="text/javascript" src="inc/md5.js"></script>
<?php
include('config.php');
  
?>
<form method="post">
<TABLE align="center">
<tr><td>
<br />
Enter the correct info and your password will be changed. For the email, it will be the one you used to sign up with.<tr><td>
<tr><td align="center">Login Name:</tr></td>
<tr><td align="center"><input type="text" size="20" name="userc"/></tr></td>
<tr><td align="center">Current Password:</tr></td>
<tr><td align="center"><input type="hidden" name="hash1">
<input type="password" size="20" name="curpass" onBlur="hash1.value=login(curpass.value)"/></tr></td>
<tr><td align="center">New Password:</td></tr>
<tr><td align="center"><input type="password" size="20" name="newpas"/></td></tr>
<tr><td align="center">Retype New Password:</td></tr>
<tr><td align="center"><input type="password" size=\"20\" name="renew"/></td></tr>
<tr><td align="center">
<input type="hidden" name="hash"><input class=Butt type=submit onClick="hash.value = login(newpas.value)" value="Change Password" name=B1>
</td></tr>
</TABLE>
</form>

<?php
            
if($_POST['B1'])
            {
            
mysql_select_db($mydbacc);
                    
$userid trim($_POST['userc']);
                    
$password=trim($_POST['curpass']);
                    
$passretype=trim($_POST['repass']);
                    
$hash=$_POST['hash'];
                    
$hash1=$_POST['hash1'];
                    
$newpass trim($_POST['newpas']);
                    
$renewpass trim($_POST['renew']);
                    
$sql "SELECT * FROM account WHERE name='$userid'";
                    
$query mysql_query($sql) or die(mysql_error());
                    
$row mysql_fetch_object($query);
                    
$curpass htmlspecialchars($row->password);

$res mysql_query("select * from account where name = '".$userid."' order by id desc");
                                if(
mysql_num_rows($res) == 0)
                                {
                                Echo 
"Sorry that username doesnt exist";
                                }else{
                if(
$hash1!= $curpass)
                    {
                        echo 
"Your current password was typed wrong";
                    }
                    else{
                    if(
$newpass != $renewpass)
                    {
                        echo 
"Your New paswords dont match";
                    }
                    else{
                    
$sql "UPDATE account SET password='$hash' WHERE name='$userid'";
                    
$query mysql_query($sql) or die(mysql_error());

                                    echo 
"Password Changed correctly ";

                                


                    }


                    }

}
}

            
?></div>
01/09/2011 20:00 slyvanussky#4
try use website released by elite4demons and eurion was released the updated of captcha i think thats about captcha issues
[Only registered and activated users can see links. Click Here To Register...]

just use the new php that he released so far i used thats one without no problems