-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathuser_add_errors.php
executable file
·88 lines (79 loc) · 4.39 KB
/
user_add_errors.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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
<div align="center">
<p><A href="http://www.amsmerchant.com" target="_blank"></A> <strong><font size="4" face="Verdana, Arial, Helvetica, sans-serif">Errors</font></strong><br />
<a href="login.php"><font size="2" face="Verdana, Arial, Helvetica, sans-serif">Login</font></a></p>
<table width="500" border="0" cellspacing="0" cellpadding="0">
<tr>
<td><?php
$username_already_in_use = $_REQUEST['username_already_in_use'];
$email_already_in_use = $_REQUEST['email_already_in_use'];
$pw_insecure = $_REQUEST['pw_insecure'];
$bad_email = $_REQUEST['bad_email'];
$username_too_short = $_REQUEST['username_too_short'];
if($username_too_short==104){echo"<font size='2' color='#ff0000' face='Verdana, Arial, Helvetica, sans-serif'>
That username is too short. Please make it more than 4 characters.<br><br></font>";}
if($username_already_in_use==104){echo"<font size='2' color='#ff0000' face='Verdana, Arial, Helvetica, sans-serif'>
That username is already in use. Please try again or log in to your existing account.<br><br></font>";}
if($email_already_in_use==104){echo"<font size='2' color='#ff0000' face='Verdana, Arial, Helvetica, sans-serif'>
That email is already in use. That probably means you have an existing account. Log in or <a href='email_password.php'>reset your password</a><br><br></font>";}
if($pw_insecure==104){echo"<font size='2' color='#ff0000' face='Verdana, Arial, Helvetica, sans-serif'>
Your Password is not formatted correctly. Please choose a password that is between 4 and 20 characters and has at least 1 uppercase letter, one lower case letter and one number I.E. <i>Hello23</i>.<br><br></font>";}
if($bad_email==104){echo"<font size='2' color='#ff0000' face='Verdana, Arial, Helvetica, sans-serif'>
Your email does not appear to be valid<br><br></font>";}
?></td>
</tr>
</table>
<form action="user_add_save.php" method="post" name="form" id="form">
<table width="474" border="0" cellspacing="0" cellpadding="5">
<tr>
<td width="177"><font size="2" face="Verdana, Arial, Helvetica, sans-serif">Username</font></td>
<td width="277"><font size="2" face="Verdana, Arial, Helvetica, sans-serif">
<input type = "text" value="<?php echo$username; ?>" name="username" width="50" />
</font></td>
</tr>
<tr>
<td><font size="2" face="Verdana, Arial, Helvetica, sans-serif">Password</font></td>
<td><font size="2" face="Verdana, Arial, Helvetica, sans-serif">
<input type = "text" value="<?php echo$password; ?>" name="password" width="50" />
</font></td>
</tr>
<tr>
<td><font size="2" face="Verdana, Arial, Helvetica, sans-serif">Last Name </font></td>
<td><font size="2" face="Verdana, Arial, Helvetica, sans-serif">
<input type = "text" value="<?php echo$lastname; ?>" name="lastname" width="50" />
</font></td>
</tr>
<tr>
<td><font size="2" face="Verdana, Arial, Helvetica, sans-serif">First name </font></td>
<td><font size="2" face="Verdana, Arial, Helvetica, sans-serif">
<input type = "text" value="<?php echo$firstname; ?>" name="firstname" width="50" />
</font></td>
</tr>
<tr>
<td><font size="2" face="Verdana, Arial, Helvetica, sans-serif">Email</font></td>
<td><font size="2" face="Verdana, Arial, Helvetica, sans-serif">
<input type = "text" value="<?php echo$email; ?>" name="email" width="50" autocomplete="OFF" />
</font></td>
</tr>
<tr>
<td><font size="2" face="Verdana, Arial, Helvetica, sans-serif">Phone</font></td>
<td><font size="2" face="Verdana, Arial, Helvetica, sans-serif">
<input type = "text" value="<?php echo$phone; ?>" name="phone" width="50" autocomplete="OFF" />
</font></td>
</tr>
<tr>
<td><font size="2" face="Verdana, Arial, Helvetica, sans-serif">Password Hint </font></td>
<td><font size="2" face="Verdana, Arial, Helvetica, sans-serif">
<input type = "text" value="<?php echo$password_hint; ?>" name="password_hint" width="50" />
</font></td>
</tr>
</table>
<p><font size="1" face="Arial, Helvetica, sans-serif">
<input type="submit" value="Save and Continue" name="submit2" />
</font></p>
</form>
<p>
<?php
?>
</p>
<p> </p>
</div>