Php "If" avec 3 variable ?

Philzik Messages postés 6 Statut Membre -  
Philzik Messages postés 6 Statut Membre -
Bonjour,

Je cherche a cree un If avec 3 variables:

if ($loic=="")
{
echo $loic;
echo "<input type=\"radio\" name=\"vloic\" id=\"radio\" value=\"Oui\" />";
echo "O";
echo "<input type=\"radio\" name=\"vloic\" id=\"radio2\" value=\"Non\" />";
echo "N";

}



if ($loic=="Oui")
{
echo $loic;
echo "<input type=\"radio\" name=\"vloic\" id=\"radio\" value=\"Oui\" checked=\"checked\" />";
echo "O";
echo "<input type=\"radio\" name=\"vloic\" id=\"radio2\" value=\"Non\" />";
echo "N";

}


if ($loic=="Non")
{
echo $loic;
echo "<input type=\"radio\" name=\"vloic\" id=\"radio\" value=\"Oui\" />";
echo "O";
echo "<input type=\"radio\" name=\"vloic\" id=\"radio2\" value=\"Non\" checked=\"checked\" />";
echo "N";

}

Je ne sais pas comment écrire ça de façon correct ...
Merci encore du temps que vous consacré à mon modeste projet ^^

Bien cordialement

Philippe

A voir également:
  • Php "If" avec 3 variable ?
  • Ai suite 3 - Télécharger - Optimisation
  • Picasa 3 - Télécharger - Albums photo
  • Photorecit 3 - Télécharger - Visionnage & Diaporama
  • Imagen 3 - Accueil - Applications & Logiciels
  • Zelda 3 - Accueil - Guide jeu vidéo

1 réponse

Philzik Messages postés 6 Statut Membre
 
resolu :)
0