Hi, i have done this.

Here is my result code. The form is not included

<? 

// assuming connection to mysql made 
$result=mysql_query("select u.Login, u.Password, a.Email from user u, address a where 
a.Email='$Email' AND u.address = a.ID" ); 
if (!mysql_num_rows($result)) 
{ 
// email not found, tell the user 
Print("Could not find that the email:$Email is registered.\n");
exit; 
}

else 
file://Send mail to user:

list($name,$pass)=mysql_fetch_row($result); 
$msg="Hi\n\nYou have asked for your username and password on ......\n\nUsername:  
$name\nPassword:  $pass\n\nBest regards \n\n"; 
mail($Email,"Your info",$msg); 
Print("Username and password is sendt to: $Email\n");
?>


Hope that you get it to work :)

Tom



----- Original Message ----- 
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, May 15, 2000 6:34 AM
Subject: [FreeTrade] Forgotten password...


> 
> 
> 
> 
> 
> Has anyone implemented a mechanism to send a user there forgotten password?
> 
> ------------------------------------------------------
> Kit Plummer
> Special Projects/ARTS, Manager
> Management Information Systems
> Marine Corps Community Services
> 
> [EMAIL PROTECTED]
> [EMAIL PROTECTED]
> Yahoo!    KITPLUMMER
> (cellular)     090.9583.8027
> (office)  011.81.611.745.3292
> (fax)     011.81.611.745.0962
> 
> 
> 
> 
> 
> ------------------------------------------------------------
> To subscribe:    [EMAIL PROTECTED]
> To unsubscribe:  [EMAIL PROTECTED]
> Site:            http://www.working-dogs.com/freetrade/
> Problems?:       [EMAIL PROTECTED]
> 



------------------------------------------------------------
To subscribe:    [EMAIL PROTECTED]
To unsubscribe:  [EMAIL PROTECTED]
Site:            http://www.working-dogs.com/freetrade/
Problems?:       [EMAIL PROTECTED]

Reply via email to