[ create a new paste ] login | about

Link: http://codepad.org/awF5eukz    [ raw code | output | fork ]

PHP, pasted on Jul 7:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
<!DOCTYPE html>
<html>
 <head>
  <title>Codes secrets</title>
  <meta charset "utf_8"/>
 </head>
 <body>
  <?php
  
  if (isset($_POST["mot_de_passe"]) AND $_POST["mot_de_passe"] == "poire")
  {
   echo "<p>Le mot de passe est \"poire\"</p>" ;
  }
  else
  {
   echo "<p>Le mot de passe est incorrect !</p>" ;
  }
  
  ?>
 </body>
</html>


Output:
1
2
3
4
5
6
7
8
9
<!DOCTYPE html>
<html>
 <head>
  <title>Codes secrets</title>
  <meta charset "utf_8"/>
 </head>
 <body>
  <p>Le mot de passe est incorrect !</p> </body>
</html>


Create a new paste based on this one


Comments: