-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcookie.php
More file actions
42 lines (38 loc) · 992 Bytes
/
cookie.php
File metadata and controls
42 lines (38 loc) · 992 Bytes
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
<?php
echo "Time Second: ".time();
?>
<html>
<head>
<title> Cookies</title>
</head>
<body>
<center>
<form name="Form2" method="POST" action="cookie1.php">
<table>
<tr>
<td>Enter username:</td>
<td> <input type="text" name="txtname" value="<?php
if(isset($_COOKIE['username'])){
echo $_COOKIE['username'];
}
?>" ></td>
</tr>
<tr>
<td>Enter password:</td>
<td> <input type="password" name="txtpass" value="<?php
if(isset($_COOKIE['password'])){
echo $_COOKIE['password'];
}
?>" ></td>
</tr>
<tr>
<td> <input type="checkbox" name="remember" >Remember Me </td>
</tr>
<tr>
<td> <input type="submit" name="submit" value="Login" > </td>
</tr>
</table>
</form>
</center>
</body>
</html>