-
Notifications
You must be signed in to change notification settings - Fork 0
/
deactivate.html
71 lines (57 loc) · 1.98 KB
/
deactivate.html
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
<!-- JOSEPH BIESELIN - Texty Web App -->
<!DOCTYPE html>
<html>
<head>
<title>Deactivation</title>
</head>
<body>
<p>We're sorry to see you go... We promise not to keep any incriminating or embarrasing things you might have posted.</p>
<hr/>
<script type="text/javascript">
function check_inputs() {
var un = document.getElementById("username").value;
var email = document.getElementById("email").value;
var password = document.getElementById("password").value;
if(un.indexOf(",") != -1 || email.indexOf(",") != -1 || password.indexOf(",") != -1) {
alert("Can't submit with ',' in any input fields");
return false;
}
if(un.indexOf(" ") != -1 || email.indexOf(" ") != -1) {
alert("Can't submit with spaces in username or email");
return false;
}
if (username.length > 16) {
alert("Please limit username to 16 characters");
return false;
}
if (password.length > 16) {
alert("Please limit password to 16 characters");
return false;
}
}
</script>
<!-- Enter email and password to remove user from system -->
<form onsubmit="return check_inputs()" method="post" action="deactivate.php">
<table>
<tr>
<td align="right">Username:</td>
<td><input type="text" name="username" placeholder="Enter the username of your account" size="28" id="username" required><br/></td>
</tr>
<tr>
<td align="right">Email:</td>
<td><input type="email" name="email" placeholder="Enter the email of your account" size="28" id="email" required><br/></td>
</tr>
<tr>
<td align="right">Password:</td>
<td><input type="password" name="password" placeholder="Enter the password of your account" size="28" id="password" required><br/></td>
</tr>
<tr>
<td></td>
<td align="right"><input type="submit" value="Deactivate Account"></td>
</tr>
</table>
</form>
<hr/>
<p>In case you change your mind, here's a link back to the <a href="index.html" style="color:rgb(180,150,20)"><u>login page</u></a></p>
</body>
</html>