This repository was archived by the owner on Jun 10, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathregistrationForm.php
More file actions
47 lines (46 loc) · 1.46 KB
/
registrationForm.php
File metadata and controls
47 lines (46 loc) · 1.46 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
<?php
echo "
<h2> Register </h2>
<form method='POST' action ='register.php' autocomplete='on'>
<p>
<label>First Name:</label>
</p>
<p>
<input type='text' name='fName' maxlength='20' pattern='[A-Z][a-zA-Z]{2,20}' placeholder='2 - 20 Letters, First Letter Capital' autocomplete required>
</p>
<p>
<label>Last Name:</label>
</p>
<p>
<input type='text' name='lName' maxlength='20' pattern='[A-Z][a-zA-Z]{2,20}' placeholder='2 - 20 Letters, First Letter Capital' autocomplete required>
</p>
<p>
<label>Username:</label>
</p>
<p>
<input type='text' name='username' maxlength='20' pattern='[a-zA-Z0-9]{1,20}' placeholder='1 - 20 Letters or Numbers' autocomplete required>
</p>
<p>
<label>Password:</label>
</p>
<p>
<input type='password' name='password' maxlength='20' pattern='(?=.*\d).{4,18}' placeholder='4 - 18 digits, atleast 1 number' autocomplete required>
</p>
<p>
<label>Re-Type Password:</label>
</p>
<p>
<input type='password' name='password2' maxlength='20' pattern='(?=.*\d).{4,18}' placeholder='4 - 18 digits, atleast 1 number' autocomplete required>
</p>
<p>
<label>Email:</label>
</p>
<p>
<input type='text' name='email' maxlength='32' pattern='[a-z0-9._%+-]+@[a-z0-9.-]+\.[a-z]{2,3}$' placeholder='[email protected]' autocomplete required>
</p>
<p>
<input type='submit' value='Submit'>
<input type='reset' value='Reset'>
</p>
</form>";
?>