Bonjour, AOL retournant automatiquement les mails que mon site envoie (pour activer un compte par exemple), je voudrai que mon formulaire d'inscription refuse les adresses mail @aol.com et @aol.fr... Comment faire? Merci!
Voici le code du formulaire d'inscription :
Voici le code du formulaire d'inscription :
Code:
<?php
if($name && $prename && $password && $email && $url)
{
$sid=mt_srand((double)microtime()*1000000);
$sid=md5(str_replace('.', '', getenv('REMOTE_ADDR') + mt_rand(100000, 999999)));
require('./prepend.inc.php');
if(account_add($name, $prename, $password, $email, $url, 2, $points_register, $sid, $referer))
{
mail($email, $email_welcome_title, $email_welcome, $email_header);
mail($email_notifynewmember, $email_notifynewmember_title, $email_notifynewmember_msg, $email_header);
header("Location: $url_register_succesfull");
exit;
}
}
?>
<?php
require('./prepend.inc.php');
?>
<div align="center"><p><font size="3">
<?php
if($name && $prename && $email && $url && $password)
echo "Account with e-mail $email already exists!";?>
<span style="font-family: verdana; font-size: 18px; font-weight: bold"><u> Formulaire d'inscription </u> </span></font></p>
</div>
<form method="post" action="./register.php">
<div align="center">
<p><font size="3">
<?php if($referer){ ?>
<input type="hidden" name="referer" value="<?php echo $referer ?>">
<?php } ?>
<br>
<span style="font-family: Verdana; font-weight: bold; font-size: 10px"><br>
</span></font><span style="font-family: Verdana; font-weight: bold; font-size: 10px"><u><span class="Style55">ATTENTION</span></u></span><span style="font-family: Verdana; font-weight: bold; font-size: 14px"><u>, NOUS REFUSONS SYSTEMATIQUMENT :</u></span></p>
<ul class="Style37 Style46 Style54">
<li>
<div align="left">Les comptes avec une adresse email provenant d' AOL.</div>
</li>
<li>
<div align="left">Les sites pornographiques.</div>
</li>
<li>
<div align="left">Les sites comprenant trop de pop-up.</div>
</li>
<li>
<div align="left">Les REDIRECTIONS (en .fr.tc, .new.fr...) - Mettez l'adresse directe de votre site. </div>
</li>
</ul>
<p> </p>
<p> </p>
</div>
<table border="0" cellspacing="0" cellpadding="0" align="center">
<tr>
<td><font size="3"><span style="font-family: verdana; font-size: 10px"><b>NOM</b></span></font></td>
<td><font size="3">
<input type="text" name="name" value="<?php echo stripslashes($name); ?>">
</font></td>
</tr>
<tr>
<td><font size="3"><span style="font-family: verdana; font-size: 10px"><b>Prénom</b></span></font></td>
<td><font size="3">
<input type="text" name="prename" value="<?php echo stripslashes($prename); ?>">
</font></td>
</tr>
<tr>
<td height="30"><font size="3"><span style="font-family: verdana; font-size: 10px"><b>E-mail:</b></span></font></td>
<td height="30"><font size="3">
<input name="email" type="text" id="email" value="<?php echo stripslashes($email); ?>">
</font></td>
</tr>
<tr>
<td><font size="3"><span style="font-family: verdana; font-size: 10px"><b>Site web </b></span></font></td>
<td><font size="3">
<input type="text" name="url" value="http://<?php echo stripslashes($url); ?>">
</font></td>
</tr>
<tr>
<td><font size="3"><span style="font-family: verdana; font-size: 10px"><b>Mot de passe</b></span></font></td>
<td><font size="3">
<input name="password" type="password" id="password" value="<?php echo stripslashes($password); ?>">
</font></td>
</tr>
<tr>
<td colspan="2"><div align="center"><font size="3"><br>
<br>
<input name="submit" type="submit" value="Envoyer">
</font></div></td>
</tr>
</table>
</form>
<p> </p>
<p> </p>