";
echo $_POST['email']."
";
echo $_POST['datenaissance']."
";
echo $_POST['avatar']."
";
if(isset($_POST['pole1'])){
echo $_POST['pole1']."
";
}else{
echo "-
";
}
if(isset($_POST['pole2'])){
echo $_POST['pole2']."
";
}else{
echo "-
";
}
if(isset($_POST['pole3'])){
echo $_POST['pole3']."
";
}else{
echo "-
";
}
if(isset($_POST['pole4'])){
echo $_POST['pole4']."
";
}else{
echo "-
";
}
echo $_POST['description']."
";
echo $_POST['loisirs']."
";
echo $_POST['statut']."
";
if(isset($_POST['pseudo']) && isset($_POST['email']) && isset($_POST['datenaissance']) && isset($_POST['avatar']) && isset($_POST['description']) && isset($_POST['loisirs']) && isset($_POST['statut'])){
$pseudo=$_POST["pseudo"];
$email=$_POST['email'];
$ddn=$_POST['datenaissance'];
$avatar=$_POST['avatar'];
if(isset($_POST['pole1'])){
$pole1=$_POST['pole1'];
}else{
$pole1="-";
}
if(isset($_POST['pole2'])){
$pole2=$_POST['pole2'];
}else{
$pole2="-";
}
if(isset($_POST['pole3'])){
$pole3=$_POST['pole3'];
}else{
$pole3="-";
}
if(isset($_POST['pole4'])){
$pole4=$_POST['pole4'];
}else{
$pole4="-";
}
$description=$_POST['description'];
$loisirs=$_POST['loisirs'];
$statut=$_POST['statut'];
$addmembre= new MembreManager();
$addmembre->newMembre($pseudo,$email,$ddn,$avatar,$pole1,$pole2,$pole3,$pole4,$description,$loisirs,$statut);
echo "
enregistrement OK";
}
else {
echo "manque un isset connard";
}
?>