Skip to content

Commit 3fd147b

Browse files
authored
Add files via upload
1 parent f2aebf7 commit 3fd147b

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed

php form.php

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
<!DOCTYPE html>
2+
<html>
3+
<head>
4+
<title>Document</title>
5+
</head>
6+
<body>
7+
<form method="POST" action="">
8+
<table>
9+
<tr>
10+
<td>Username:</td>
11+
<td><input type="text" name="u_name">
12+
</tr>
13+
<tr>
14+
<td>Password:</td>
15+
<td><input type="Password" name="u_pass"></td>
16+
</tr>
17+
<tr>
18+
<td></td>
19+
<td><input type="submit" name="u_login"></td>
20+
</tr>
21+
</table>
22+
</form>
23+
<?php
24+
if (isset($_POST['u_login'])) {
25+
$u_name = $_POST['u_name'];
26+
$u_pass = md5($_POST['u_pass']);
27+
28+
echo "$u_name";
29+
echo '<br/>';
30+
echo "$u_pass";
31+
}
32+
?>
33+
</body>
34+
</html>

0 commit comments

Comments
 (0)