1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
| <?php
$nom=strip_tags($_POST['name']);
$prenom=strip_tags($_POST['prénom']);
$email=strip_tags($_POST['email']);
$pwd=sha1($_POST['password']);
$jour=$_POST['jr'];
$mois=$_POST['mois'];
$annee=$_POST['année'];
$sex=$_POST['sexe'];
include ("connection.php");
if (!exec('INSERT INTO infos (id, name, prenom, password, email, jr, mois, année, sexe) VALUES (\'0\' ,\'$nom\' ,\'$prenom\' ,\'$pwd\' ,\'$email\' ,\'$jour\' ,\'$mois\' ,\'$annee\' ,\'$sex\') '))
{
echo "Requète impossible!";
}
else{
$bdd->exec('INSERT INTO infos(id, name, prenom, password, email, jr, mois, année, sexe) VALUES (\'0\' ,\'$nom\' ,\'$prenom\' ,\'$pwd\' ,\'$email\' ,\'$jour\' ,\'$mois\' ,\'$annee\' ,\'$sex\') ');
echo " ça marche!";
}
?> |
Partager