I have use the code you can see under this. But I only get the message "Change update did not take place. Please retry"
The link to this page is
<a href="pass.php?user=<?php echo $username; ?>">Edit password</a>
What's the problem whit it? Thx for the help!
<?php
if ($newpassword <>$newpassword2){
header ("Location:[url]http://members.lycos.nl/cyberzone77/cgi-bin/phpmeet/members/pass.php[/url]");
echo "passwords do not match. please re-enter passwords!";
echo "<html><body>
<form name=change method=post action=PHP_SELF>
Old password: <input type=password name=oldpassword value=$oldpassword><br><br>
New password:<input type=password name=newpassword><br>
Repeat new pasword:<input type=password name=newpassword><br>
<input type=hidden value=$userid>
<input type=submit value=submit></form></body></html>";
}else{
$result = mysql_query("update phpmeet set password=MD5($password) where user =$user");
if (!$result){
echo "Change update did not take place. Please retry";
}else {
echo "change successful!";
}
}
?>