Hey Fozi,
lost_password.php:
<?php
include("cuser.inc.php");
if($_POST['pageid']=="1"){
$result=mail_password('$_POST[username]','$_POST[email]');
if(!$result){
echo("We could not locate your account. Please hit back and try again.");
exit;
}else{
echo("Your password has been emailed to you!");
exit;
}
}
?>
<form action="lost_password.php" method="POST">
<input type="hidden" name="pageid" value="1">
Your Username: <input type="text" name="username">
<BR>
Your Email: <input type="text" name="email">
<BR>
<input type="submit" value=" Retrieve ">
</form>
END SCRIPT
thats a really REALLY basic idea of what you can do. If you want it done more professionaly just email me at ACJavascript@aol.com I would be happy to help out more! 
__________________
CYTech-services.com - 100 Satisfied Customers - Custom Programming and Web Development
|