Master Summoner
- Joined
- Aug 22, 2005
- Messages
- 547
- Reaction score
- 0
ok so this is what i need:
OK THIS RIGHT HERE HAS TO SEND THE DATA TO U EMAIL
now insted of sending it to an email i want that the data to be printed on the page WHAT DO I NEED TO WRITE HERE?
<-------
PHP:
$query = "SELECT login, password FROM accounts WHERE email='".$_POST['login_mail_r']."'";
$res=mysql_fetch_assoc(mysql_query($query));
if(!$res)
die("Account not found!");
$msg="Hi,\n here is your required login data:\n\n
Username: ".$res['login']."\nPassword: ".$res['password']."";
mail($_POST['login_mail_r'],"Login data retrive", $msg);
OK THIS RIGHT HERE HAS TO SEND THE DATA TO U EMAIL
PHP:
echo 'Data successfully sended!<br><b>DATA:</b><br>'; (if is successfuly send it)
now insted of sending it to an email i want that the data to be printed on the page WHAT DO I NEED TO WRITE HERE?
<-------
PHP:
echo '<br><a href="index.php">Back to index</a>';
}
?>