-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathuserinfo.php
More file actions
101 lines (94 loc) · 2.77 KB
/
userinfo.php
File metadata and controls
101 lines (94 loc) · 2.77 KB
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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
<?php
session_start();
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>registration form</title>
<script language="JavaScript">
function RePasswordValidataion(sPassword,sRePassword)
{
if(sPassword.toString()!=sRePassword.toString())
{
alert("Re-Type Password Has to be same as the Password");
return false;
}
else{return true;}
}
</script>
<style type="text/css">
<!--
.style3 {
font-family: Georgia, "Times New Roman", Times, serif;
font-weight: bold;
}
.style4 {
font-family: Georgia, "Times New Roman", Times, serif;
font-style: italic;
color: #C60063;
}
.style6 {font-family: Georgia, "Times New Roman", Times, serif; font-style: italic; color: #99FF66; }
.style10 {font-size: 5}
-->
</style>
<?php
include "index7.php";
?>
<?php
if (!isset($_SESSION['token']))
{
$token = md5(uniqid(rand(), TRUE));
$_SESSION['token'] = $token;
$_SESSION['token_time'] = time();
}
?>
</head>
<body>
<p align="center"> </p>
<p align="center"> </p>
<TR></tr>
<form action="userdetailinsert.php" method="post" name="userinfo"><TR></tr>
<br />
<input type="hidden" name="token" value="<?php echo $token; ?>" />
<table class = "table" align="center" width="380" border="3" cellspacing="1" cellpadding="1">
<tr>
<td><span class="style1"><strong>Enter user name:</strong></span> </td>
<td width="380"><input type="text" name="username"/></td>
</tr>
<tr>
<td><span class="style1"><strong>Enter password:</strong></span></td>
<td><input type="password" name="pwd" maxlength="8" /></td>
</tr>
<tr>
<td><span class="style1"><strong>Confirm password:</strong></span></td>
<td><input type="password" name="password" maxlength="8" onchange="return RePasswordValidataion(document.userinfo.pwd.value,document.userinfo.password.value)"/></td>
</tr>
<tr>
<th align=left>Full Name :</th>
<td colspan=4><input type=text name=txtname size=50></td>
</tr>
<tr>
<th align=left>Email :</th>
<td colspan=4><input type="text" name="txtemail" size=50></td>
</tr>
<tr>
<th align=left>Company :</th>
<td colspan=4><input type=text name=txtcompany size=50 onkeyPress="validcompany()"></td>
</tr>
<tr>
<th align=left>Telephone :</th>
<td colspan=4><input type="text" name="txtnumber" size=15 ></td>
</tr>
<tr>
<th align=left valign=top>Address :</th>
<td colspan=4><textarea name=txtaddress rows=5 cols=40></textarea></td>
</tr>
</table>
<br />
<div align="center"><input class="button" type="submit" value="Submit" name="ok" align="right" />
<input name="reset" type="reset" value="Cancel"/>
</div>
</form>
</body>
</html>