summaryrefslogtreecommitdiff
path: root/www
diff options
context:
space:
mode:
authorjerome <jerome@xlinfo.fr>2025-09-03 17:27:07 +0200
committerjerome <jerome@xlinfo.fr>2025-09-03 17:27:07 +0200
commit7f756990002dc0ec7b8ac026e1b2a40ebba819a3 (patch)
tree217104306fcb1fd0120a9db6548dc0648b11bfff /www
parent523245a857990540dc65148c19aec5aa7f120f9c (diff)
downloadhttp-7f756990002dc0ec7b8ac026e1b2a40ebba819a3.tar.gz
http-7f756990002dc0ec7b8ac026e1b2a40ebba819a3.zip
Dockerfile
Diffstat (limited to 'www')
-rw-r--r--www/index.html4
-rw-r--r--www/page.php5
2 files changed, 2 insertions, 7 deletions
diff --git a/www/index.html b/www/index.html
index a2d890e..af33466 100644
--- a/www/index.html
+++ b/www/index.html
@@ -23,10 +23,10 @@
<strong>Questionnaire</strong>
<form id="monform" action="page.php">
<p class="formulaire">
- Votre nom :<input type="text" name="username">
+ Votre nom :<input type="text" name="username" required>
</p>
<p class="formulaire">
- Votre OS : <select name="os" maxlength=7>
+ Votre OS : <select name="os" maxlength=7 required>
<option label="------"></option>
<option>Mac Os</option>
<option>Windows</option>
diff --git a/www/page.php b/www/page.php
index 9d7a384..e93b279 100644
--- a/www/page.php
+++ b/www/page.php
@@ -7,7 +7,6 @@
<body>
<div>
<?php
-//if (isset($_REQUEST['password']) && $_REQUEST['password'] == "secret"){
if (isset($_REQUEST['username']))
{
echo "<p>Merci ".$_REQUEST['username']." !</p>";
@@ -20,10 +19,6 @@
{
echo "<p>Nous sommes le ".date("Y-m-d H:i:s",$_COOKIE['date'])."</p>";
}
-/*}
-else {
- echo "Mauvais mot de passe";
-}*/
?>
</div>
<p><a href="javascript:history.back()">Retour</a></p>