-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.php
53 lines (46 loc) · 1.09 KB
/
index.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
<?php
/*
Auteur : AWADEME FINANFA Ronaldo
Email: [email protected]
*/
session_start();
if(isset($_POST['code']) && $_POST['code'] == $_SESSION['code'])
{
echo "Code Valide";
}else
{
$erreur = "Code Invalide";
}
?>
<!DOCTYPE html>
<html>
<head>
<title>Système de captchat</title>
<link rel="stylesheet" type="text/css" href="style.css">
</head>
<body>
<section class="main">
<div class="title">
<h1>Système de Captchat</h1>
</div>
<div class="form">
<form method="post" action="">
<p>
<label for="message">Message:</label><br/>
<textarea name="message" id="message"></textarea><br/>
<label for="code">Saisir le code suivant:</label>
<img src="capchat.php" alt="captchat">
<br/>
<input type="text" name="code" id="code"><br/>
<input type="submit" name="envoyer" value="envoyer" id="envoyer"><br/>
<?php if(isset($erreur)){
echo '<p style="color:red;font-weight:bold;">'.$erreur.'</p>';
} ?>
</p>
</form>
</div>
</section>
</body>
</html>
<style type="text/css">
</style>