Bonjour à tous,
j'ai installé sur mon site un formulaire d'inscription qui est capable de détecter si un nouvel inscrit choisit un nom déjà utilisé. Je voudrais le
modifier pour qu'il en fasse de même pour les emails, avec un message du genre : cet email est déjà présent dans la base de données etc,
mais je n'arrive pas à comprendre comment ça fonctionne (je ne connais rien au php)
le script extrait de la page register.php : (j'ai voulu mettre la page en entier mais je me suis fait jeter comme spameur)
Merci de vos lumières
</script>
<?php
include("config.php");
include("head.php");
?>
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td valign="top">
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td><table width="100%" border="0" cellpadding="0" cellspacing="0">
<form action="adduser.php" method="post" enctype="multipart/form-data" name="registerform" onSubmit="return validation();">
<tr>
<td height="50" colspan="2"> <p><font size="4" face="Georgia, Times New Roman, Times, serif">*
BULLETIN D'<font color="#000000">INSCRIPTION AU COURS AFTER EFFECTS</font></font>(<font color="#FF0000">* </font><font color="#000000">champs obligatoires )</font><br>
<font size="2">
<?php
if(isset($_GET['opt']))
{
echo "<br>";
if($_GET['opt']==1) echo '<strong><font color="#FF0000">CE PSEUDONYME EXISTE DEJA, CHOISISSEZ EN UN AUTRE</font></strong>';
if($_GET['opt']==3) echo 'Format incorrect';
}
?>