Php "If" avec 3 variable ?
Philzik
Messages postés
6
Statut
Membre
-
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
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
- Toutes les combinaisons possibles avec 3 chiffres ✓ - Forum Programmation
- Expert php pinterest - Télécharger - Langages