summaryrefslogtreecommitdiffstats
path: root/forms.php
blob: 1fc9b8865dcad9a3e0a4ce461442f4d1612b42de (plain)
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
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Hacker's Corner</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
</head>
<body>
<h2>In Soviet Russia the server GETs you!</h2>

<form action="process.php" method="post" name="login">
  User: <input type="text" name="name" value="guest" /><br />
  Password: <input type="password" name="password" value="evil" /><br />
  <input type="submit" value="Submit" />
</form>

<br />

<form action="process.php" method="get" name="userinfo">
  Name: <input type="text" name="name" value="hax0r" /><br />
  Password: <input type="text" name="password" value="evil" /><br />
  E-mail: <input type="text" name="email" value="hax0r@hax.com" /><br />
  Location: <input type="text" name="location" value="127.0.0.1" /><br />
  Home Phone: <input type="text" name="home_phone" value="911" /><br />
  Work Phone: <input type="text" name="work_phone" value="111" /><br />
  <input type="hidden" name="FormName" value="Record" />
  <input type="hidden" name="FormAction" value="insert" />
  <input type="submit" value="Submit" />
</form>

<br />

<form action="insert.php" method="post">
  Subject name: <input type="text" name="menu_name" value="" id="menu_name" /><br />
  Position: <select name="position">
        <option value="1">1</option> <!-- was really meant to insert at specific place -->
        <option value="2">2</option> <!-- and push off existing ones by 1 offset -->
        <option value="3">3</option>
  </select><br />
  Visible: <input type="radio" name="visible" value="0" /> No &nbsp; <input type="radio" name="visible" value="1" /> Yes<br />
  <input type="submit" value="Add Subject" />
</form>

<p>
<?php /* on errors the form should submit to itself */
?>
</p>

</body>
</html>