This commit is contained in:
2026-04-01 08:25:18 +02:00
parent 19afef54e6
commit d13f66226b
26 changed files with 426 additions and 0 deletions
+3
View File
@@ -0,0 +1,3 @@
form button{
float:right;
}
+54
View File
@@ -0,0 +1,54 @@
<!DOCTYPE html>
<html lang="fr">
<head>
<meta charset="UTF-8" />
<link
rel="stylesheet"
href="https://cdn.jsdelivr.net/npm/@picocss/pico@2/css/pico.classless.min.css"
/>
<link rel="stylesheet" href="./css/style.css">
<title>Exercice 1</title>
</head>
<body>
<main>
<h3> Exercice 1</h3>
<form action="ex1.php" method="POST">
<fieldset>
<legend>Qui êtes-vous ?</legend>
<!-- Text input-->
<label>Nom
<input name="nom" placeholder="nom" type="text">
</label>
<!-- Text input-->
<label >Prénom
<input name="prenom" placeholder="prénom" type="text">
</label>
</fieldset>
<!-- Multiple Radios -->
<fieldset>
<legend>Système d'exploitation préféré</legend>
<label>
<input name="os" value="1" checked="checked" type="radio">
Linux
</label>
<label >
<input name="os" value="2" type="radio">
Windows
</label>
<label >
<input name="os" value="3" type="radio">
macOS
</label>
<label >
<input name="os" value="4" type="radio">
Android
</label>
</fieldset>
<!-- Button -->
<button type="submit">Envoyer</button>
</form>
</main>
</body>
</html>
+26
View File
@@ -0,0 +1,26 @@
<?php
include 'include/controller.php';
?>
<!DOCTYPE html>
<html lang="en">
<head>
<link
rel="stylesheet"
href="https://cdn.jsdelivr.net/npm/@picocss/pico@2/css/pico.classless.min.css"
/>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.2/css/all.min.css" integrity="sha512-SnH5WK+bZxgPHs44uWIX+LLJAJ9/2PkPKZ5QiAj6Ta86w+fsb2TkcmfRyVX3pBnMFcV7oQPJkl9QevSCWr3W6A==" crossorigin="anonymous" referrerpolicy="no-referrer" />
<link rel="stylesheet" href="./css/style.css">
<meta charset="UTF-8" />
<title></title>
</head>
<body>
<main>
<ul>
<?php
echo "<li>$prenom $nom</li>";
echo "<li><i class='fa-brands $icon fa-2x'></i></li>";
?>
</ul>
</main>
</body>
</html>
+2
View File
@@ -0,0 +1,2 @@
<?php
// TODO