-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsignup.php
42 lines (32 loc) · 882 Bytes
/
signup.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
<?php session_start(); ?>
<html>
<body>
Todo list App
<br>
<br>
<b> Sign-up </b>
<br>
<br>
<?php
if (in_array('error_message', $_SESSION))
{
if (strlen($_SESSION['error_message']) > 0)
{
echo "<div class='error_message'>" . $_SESSION['error_message'] . "</div>";
echo "<br>";
echo "<br>";
}
}
?>
<form method='post' action='php/process_signup.php'>
Username: <input type='text' id='signup_username' name='signup_username' /> <br>
E-mail: <input type='email' id='signup_email' name='signup_email' /> <br>
Password: <input type='password' id='signup_password' name='signup_password' /> <br>
Repeat Password: <input type='password' id='signup_repeat_password' name='signup_repeat_password' /> <br>
<input type='submit' id='signup_submit' onclick='signup();' value='Submit' />
</form>
<br>
<br>
<a href='index.php'>Back</a>
</body>
</html>