1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50
| <!DOCTYPE html>
<html lang="fr"> <!-- Radio74M.PHP -->
<head>
<meta http-equiv="content-type" content="text/html;charset=utf-8">
</head>
<body>
<?php
if (isset($_GET['condition1'])){
if ($_GET['condition1']==='true'){
if (isset($_GET['condition2'])){
if ($_GET['condition2']==='true'){
echo 'les 2 conditions sont bien juste';
}else{
echo 'la 2éme condition existe mais n\'est pas juste';
}
}else{
echo 'la 2éme condition n\'existe pas';
}
}else{
echo 'la 1ère condition n\'est pas juste';
}
echo 'la 1ère condition existe';
}else{
echo 'la 1ère condition n\'existe pas';
}
?>
La suite de la page .... avec différentes balises html div ... label ....
Un peu de javascript
<script>
// du code javasript
function ClickAfficheVert(){ReAffiche(this.options['alt'],'LimeGreen');}
function ClickAfficheRouge(){ReAffiche(this.options['alt'],'Coral');}
// du code généré suivant les mêmes conditions
<?php
if (isset($_GET['condition1'])){
if ($_GET['condition1']==='true'){
if (isset($_GET['condition2'])){
if ($_GET['condition2']==='true'){
echo ' function AffInfSpc(){
RechInfos("InfosQRZAdmi");
}//---------------------------------------------------------
';
}
}
}
}
?>
</script>
</body>
<html> |