+
+
+
\ No newline at end of file
diff --git a/loginExercise/validate.php b/loginExercise/validate.php
new file mode 100644
index 0000000..bf2b8b2
--- /dev/null
+++ b/loginExercise/validate.php
@@ -0,0 +1,20 @@
+
\ No newline at end of file
From 398d21ac3ced545ea0ec4803dde40fe9b9e2e9de Mon Sep 17 00:00:00 2001
From: Ruben Zafra Traver
Date: Thu, 22 Dec 2022 12:56:34 +0100
Subject: [PATCH 3/5] Updated Readme
---
README.md | 35 +++++++++++++----------------------
1 file changed, 13 insertions(+), 22 deletions(-)
diff --git a/README.md b/README.md
index 654a6a1..e2d25e1 100644
--- a/README.md
+++ b/README.md
@@ -1,45 +1,36 @@
-`#php` `#server` `#master-in-software-development`
+# PHP Server Environment 💻
-# PHP Server Environment
+> In this project we learnt how to explore the content of the variable $_SERVER which is injected to the running script, in it we can find information about the server environment and the client as well as creating a simple login form that validates the inputs, throws alerts for different cases and that can logout successfully.
+For this I used session_start() to maintain the variables as well as: unset($_SESSION), session_destroy() and session_write_close() to logout.
-
-
-
+I also used Bootstrap to create a simple and beautiful layout and desing.
-> In this project you will learn how to explore the content of the variable $_SERVER which is injected to the running script, in it we can find information about the server environment and the client.
-
-## Index
+## Index ☟
- [Requirements](#requirements)
-- [Repository](#repository)
- [Technologies used](#technologies-used)
-- [Project delivery](#project-delivery)
- [Resources](#resources)
-## Requirements
+## Requirements
- Learn how to use the $_SERVER
- Understand what a server-side language is and what it is used for
+- Learn how to handle errors
+- Learn how to use Sessions
-## Repository
-
-First of all you must fork this project into your GitHub account.
-
-To create a fork on GitHub is as easy as clicking the “fork” button on the repository page.
-
-
-
-## Technologies used
+## Technologies used
\* PHP
+\* XAMPP
+\* Bootstrap
-## Project delivery
+## Project delivery ✅
To deliver this project you must send a Pull Request as explained in the Students Handbook. Remember that the PR title must be with the format
- Solution: + NAME AND SURNAME or TEAM NAMES AND SURNAMES.
- For example: "Solution: Josep Riera", "Solution: Josep Riera, Toni Suárez, Marta Vázquez"
-## Resources
+## Resources 👀
- [$_SERVER](https://www.php.net/manual/en/reserved.variables.server.php)
- [PHP.ini](https://www.php.net/manual/es/configuration.file.php)
From c6fd872fee37ee7ea9eec6ceb956c8808a1fd30d Mon Sep 17 00:00:00 2001
From: Ruben Zafra Traver
Date: Thu, 22 Dec 2022 12:57:10 +0100
Subject: [PATCH 4/5] Updated Readme Final
---
README.md | 6 ------
1 file changed, 6 deletions(-)
diff --git a/README.md b/README.md
index e2d25e1..5bd80cf 100644
--- a/README.md
+++ b/README.md
@@ -24,12 +24,6 @@ I also used Bootstrap to create a simple and beautiful layout and desing.
\* XAMPP
\* Bootstrap
-## Project delivery ✅
-
-To deliver this project you must send a Pull Request as explained in the Students Handbook. Remember that the PR title must be with the format
-- Solution: + NAME AND SURNAME or TEAM NAMES AND SURNAMES.
-- For example: "Solution: Josep Riera", "Solution: Josep Riera, Toni Suárez, Marta Vázquez"
-
## Resources 👀
- [$_SERVER](https://www.php.net/manual/en/reserved.variables.server.php)
From 6837a7cce5a358ca3f8880ab05f48fce343fdcf1 Mon Sep 17 00:00:00 2001
From: Ruben Zafra Traver
Date: Fri, 23 Dec 2022 09:49:14 +0100
Subject: [PATCH 5/5] Refactor without echo
---
loginExercise/index.php | 15 ++++++++++-----
1 file changed, 10 insertions(+), 5 deletions(-)
diff --git a/loginExercise/index.php b/loginExercise/index.php
index dfbbd17..7312570 100644
--- a/loginExercise/index.php
+++ b/loginExercise/index.php
@@ -51,17 +51,22 @@
Your Email or Password are incorrect.";
+ case "incorrect":
+ ?>
+