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
52
|
<?php session_start();
if( isset($_POST['submit'])) { $_SESSION['username'] = $_POST['username']; $_SESSION['password'] = $_POST['password']; //$db_object->disconnect(); header('Location: main.php');
} else { ?> <html> <head> <title>Admin Page</title> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <link rel="stylesheet" type="text/css" href="main.css" /> </head> <body> <table border="0" align="center" cellpadding="0" cellspacing="0"> <tr> <td valign="middle"><img src="images/cmslogo.jpg"/></td> </tr> <tr> <td height="44" align="center"> <? echo "<br><p><b>". $_GET['msg'] ."<b></p>"; ?> <form action="login.php" method="post"> <br> <br> <br> <br> <table border="0" cellspacing="0" cellpadding="0"> <tr><td align="right" class="admincontent">Login ID</td> <td class="admincontent">: </td> <td class="admincontent"><input type="text" name="username" value="" size="25" maxlength="25" ></td></tr> <tr><td align="right" class="admincontent">Password</td> <td class="admincontent">: </td> <td class="admincontent"><input type="password" name="password" value=""size="25" maxlength="25" ></td></tr> <tr><td colspan="2" align="center" class="admincontent"></td> <td colspan="2" align="right" class="admincontent" ><input type="submit" name="submit" value="Login"></td></tr> </table> </form>
</td> </tr> </table> <?php } ?> </body> </html>
|