-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy patht2.php
31 lines (29 loc) · 982 Bytes
/
t2.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
<?php
//session_start();
require('csrf.php');
$token = new Csrf(true, true, true);
echo $token->get_token_name();
echo '<br>';
echo $token->get_token_value();
echo '<br>';
echo $token->create_link('localhost/php_token/t2.php');
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="content-type" content="text/html;charset=UTF-8" />
<title>Securing forms with form token</title>
</head>
<body>
<form action="" method="post">
<dl>954q ewr
<dt><label for="username">Username:</label></dt>
<dd><input type="text" name="username" id="username" /></dd>
<dt><label for="username">Password:</label></dt>
<dd><input type="password" name="password" id="password" /></dd>
<dt></dt>
<dd><input type="submit" value="Submit" /></dd>
<dl>
</form>
</body>
</html>