Probleme mail en php
Hakim
-
mpmp93 Messages postés 6648 Date d'inscription Statut Membre Dernière intervention -
mpmp93 Messages postés 6648 Date d'inscription Statut Membre Dernière intervention -
<form name="forgot" method="post" action="<?php $_SERVER['PHP_SELF'];?>">
<p><label for="email">Email:</label>
<input name="email" type="text" value="" />
</p>
<input type="submit" name="submit" value="submit"/>
<input type="reset" name="reset" value="reset"/>
</form>
<?php
session_start();
$email=$_POST['email'];
$connect=mysql_connect("localhost","root","") or die("Could not connect to database");
mysql_select_db("gestionconference", $connect) or die("Couldn't find db");
$email_check=mysql_query("SELECT password FROM users WHERE address='$email'");
$count=mysql_num_rows($email_check);
$subject="Login Info";
$message="Your password is .$count";
$from="From: ***@***";
mail($email, $subject, $message, $from);
echo "your password has been email to you";
?>
</body>
k obtien ce message la en easy php
<p><label for="email">Email:</label>
<input name="email" type="text" value="" />
</p>
<input type="submit" name="submit" value="submit"/>
<input type="reset" name="reset" value="reset"/>
</form>
<?php
session_start();
$email=$_POST['email'];
$connect=mysql_connect("localhost","root","") or die("Could not connect to database");
mysql_select_db("gestionconference", $connect) or die("Couldn't find db");
$email_check=mysql_query("SELECT password FROM users WHERE address='$email'");
$count=mysql_num_rows($email_check);
$subject="Login Info";
$message="Your password is .$count";
$from="From: ***@***";
mail($email, $subject, $message, $from);
echo "your password has been email to you";
?>
</body>
k obtien ce message la en easy php
A voir également:
- Probleme mail en php
- Publipostage mail - Accueil - Word
- Windows live mail - Télécharger - Mail
- Créer une adresse mail hotmail - Guide
- Comment télécharger un mail - Guide
- Cegetel mail ✓ - Forum Mail