[ create a new paste ] login | about

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

PHP, pasted on Jul 21:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <title>test page</title>
</head>
<body>
<p>
<?php

echo "value of the post:" . htmlspecialchars($_POST['example']);

?>
</p>
<form method="post" action="<?=htmlspecialchars($_SERVER['SCRIPT_NAME']);?>">
  <input type="text" name="example" />
  <input type="submit" />
</form>
</body>
</html>


Output:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <title>test page</title>
</head>
<body>
<p>
value of the post:</p>
<form method="post" action="t.php">
  <input type="text" name="example" />
  <input type="submit" />
</form>
</body>
</html>


Create a new paste based on this one


Comments: