update
This commit is contained in:
24
DEV.2.2/TP/TP2/ex1controller.php
Normal file
24
DEV.2.2/TP/TP2/ex1controller.php
Normal file
@@ -0,0 +1,24 @@
|
||||
//controller.php
|
||||
|
||||
<?php
|
||||
$prenom = $_POST['prenom'];
|
||||
$nom = $_POST['nom'];
|
||||
$os = $_POST['os'];
|
||||
$button = $_POST['button'];
|
||||
|
||||
if(ctype_upper($prenom)) {
|
||||
$prenom = strtolower($prenom);
|
||||
}
|
||||
ucfirst($prenom);
|
||||
if(ctype_upper($nom)){
|
||||
$nom = strtolower($nom);
|
||||
}
|
||||
ucfirst($nom);
|
||||
|
||||
if($button){
|
||||
echo"<ul>";
|
||||
echo"<li>$prenom $nom</li>";
|
||||
echo"<li>$os</li>";
|
||||
echo"</ul>";
|
||||
}
|
||||
?>
|
Reference in New Issue
Block a user