-
Notifications
You must be signed in to change notification settings - Fork 1
/
login.php
71 lines (64 loc) · 1.87 KB
/
login.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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
<?php
$i=$_REQUEST['itemno'];
include("config.php");
if($_REQUEST['sub'])
{
$id=$_REQUEST['t1'];
$pass=$_REQUEST['p1'];
$sel=mysql_query("select id,pass from register where id='$id'");
$arr=mysql_fetch_array($sel);
if(($arr['id']==$id) and( $arr['pass']==$pass))
{
session_start();
$_SESSION['eid']=$id;
echo "<script>location.href='order.php?itemno=$i'</script>";
}
else
{
$er="id and password do not match";
}
}
?>
<html>
<div><br/><center><h2><font face="Lucida Handwriting" size="+1" color="#00CCFF">Login your Account</font></h2></center></div>
<div>
<div style="width:25%;float:right">
<img src="usepics/7.jpg">
</div>
<br><br>
<div style="width:70%;float:right" align="center" >
<center><fieldset style="background:#CC99CC;width:50%">
<br><br>
<table width="244" border="0" align="center">
<form method="post">
<tr><td colspan="2"><?php echo "<font color='green'>$er</font>";?></td></tr>
<tr>
<td width="90"><div align="center"><font size="+1" face="Comic Sans MS">UserID:</font></div></td>
<td width="144"><label>
<input name="t1" type="text" id="t1">
</label></td>
</tr>
<tr>
<td><div align="center"><font size="+1" face="Comic Sans MS">Password:</font></div></td>
<td><input name="p1" type="password" id="p1"></td>
</tr>
<tr>
<td><label>
<div align="center">
<input name="sub" type="submit" value="Login">
</div>
</label></td>
<td><strong><a href="index.php?con=11"><font color="#993333" size="+1" face="Bradley Hand ITC">Sign Up</font></a></strong> </td>
</tr>
<tr>
<td height="37" colspan="2"><div align="center"><a href="#"><font size="+1" face="Bradley Hand ITC"><strong>Forgot your Password? </strong></font></a></div></td>
</tr>
</form>
</table>
</fieldset></center>
</div>
</div>
<!--<div style="width:100%;float:left"><center><b>Copyright©Priya Gupta</b></center></div>
</div>-->
</body>
</html>