diff --git a/.vscode/launch.json b/.vscode/launch.json
new file mode 100644
index 0000000..322e941
--- /dev/null
+++ b/.vscode/launch.json
@@ -0,0 +1,20 @@
+{
+ // Use IntelliSense to learn about possible attributes.
+ // Hover to view descriptions of existing attributes.
+ // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
+ "version": "0.2.0",
+ "configurations": [
+ {
+ "type": "chrome",
+ "request": "launch",
+ "name": "Open cursus.html",
+ "file": "c:\\Users\\Corentin\\Desktop\\site_web\\cursus.html"
+ },
+ {
+ "type": "chrome",
+ "name": "http://127.0.0.1:3000/cursus.html",
+ "request": "launch",
+ "url": "http://127.0.0.1:3000/cursus.html"
+ }
+ ]
+}
\ No newline at end of file
diff --git a/planning.html b/planning.html
index 896c920..6e9c4ae 100644
--- a/planning.html
+++ b/planning.html
@@ -3,6 +3,7 @@
+
Corentin
- Form
+ Formulaire
+
+
PLANNING
Planning d'activités
diff --git a/process.php b/process.php
index fef3ed6..e7fd92c 100644
--- a/process.php
+++ b/process.php
@@ -1,26 +1,46 @@
Form Submitted Successfully!";
- echo "Last Name: " . $last_name . "
";
- echo "First Name: " . $first_name . "
";
- echo "Age: " . ($age !== null ? $age : 'Not provided') . "
";
- echo "Gender: " . $gender . "
";
+ // Vérifications des champs obligatoires
+ if (!$data['name']) $errors[] = "Le champ 'Nom' est obligatoire.";
+ if (!$data['email']) $errors[] = "Le champ 'Adresse de courriel' est obligatoire.";
+ if (!$data['message']) $errors[] = "Le champ 'Message' est obligatoire.";
+
+ // Validation de l'adresse email
+ if ($data['email'] && !filter_var($data['email'], FILTER_VALIDATE_EMAIL)) {
+ $errors[] = "Le format de l'adresse de courriel est invalide.";
+ }
+
+ // Affichage des erreurs ou récapitulatif
+ if ($errors) {
+ echo "Erreurs dans le formulaire : ";
+ foreach ($errors as $error) {
+ echo "" . htmlspecialchars($error) . " ";
+ }
+ echo " ";
+ echo "Retour au formulaire ";
} else {
- // Handle missing required fields
- echo "Error: First name and last name are required.
";
+ echo "Récapitulatif de votre demande ";
+ echo "Nom : " . htmlspecialchars($data['name']) . "
";
+ echo "Adresse de courriel : " . htmlspecialchars($data['email']) . "
";
+ echo "Numéro de téléphone : " . htmlspecialchars($data['phone']) . "
";
+ echo "Motif de contact : " . htmlspecialchars($data['reason']) . "
";
+ echo "Créneau horaire : " . htmlspecialchars($data['schedule']) . "
";
+ echo "Première demande : " . ($data['first_request'] === 'yes' ? 'Oui' : 'Non') . "
";
+ echo "Message : " . nl2br(htmlspecialchars($data['message'])) . "
";
+ echo "Votre demande a été prise en compte et sera étudiée.
";
}
-} else {
- echo "No form was submitted.
";
}
-?>
\ No newline at end of file
+?>
diff --git a/style.css b/style.css
index fa93b80..2cfa537 100644
--- a/style.css
+++ b/style.css
@@ -63,7 +63,8 @@ figcaption {
/*Navbar css*/
/* Style général de la navbar */
.navbar {
- background-color: #0e6ab9;
+ background: linear-gradient(135deg, #0e6ab9, #1a82db);
+ /*background-color: #0e6ab9;*/
padding: 15px;
display: flex;
justify-content: center;
@@ -71,6 +72,7 @@ figcaption {
top: 0;
z-index: 1000;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
+
}
.navbar-list {
@@ -417,4 +419,16 @@ figcaption {
.right {
left: 0%;
}
- }
\ No newline at end of file
+ }
+
+
+
+
+
+
+
+ /* additional requests */
+
+#planning{
+ font-family: 'Roboto', Arial, sans-serif;
+}
\ No newline at end of file