-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathaccount.php
53 lines (40 loc) · 1.72 KB
/
account.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
<?php
/**
* Created by PhpStorm.
* User: saifeddine
* Date: 2019-02-18
* Time: 16:03
*/
require "./header.php";
if(isset($_GET['status'])) {
$message = $_GET['status'];
}
?>
<div class="form">
<h1> Welcome </h1>
<form action='includes/registration.php' method='POST' class="register-form">
<span class="status"><?php echo $message ?></span>
<input type="text" name="fname" placeholder="First name" maxlength="50"/>
<input type="text" name='lname' placeholder="Last name" maxlength="50"/>
<input type="password" name='password' placeholder="password" maxlength="50"/>
<input type="email" name='email' placeholder="Email address" maxlength="50"/>
<label> <input type="radio" name="gender" value="male"> Male</label>
<label> <input type="radio" name="gender" value="female"> Female</label>
<input type="text" name='city' placeholder="City" maxlength="50"/>
<input type="text" name='street' placeholder="Street/Number" maxlength="50"/>
<input type="text" name='postal' placeholder="XXXX00" maxlength="36"/>
<button type="submit">Register</button>
<p class="form-message">Already registered? <a id="login-toggle">Sign In</a></p>
</form>
<form action="includes/login.php" method="POST" class="login-form">
<span class="status"><?php echo $message ?></span>
<span class="login-message"><?php ?></span>
<input type="email" name="email" placeholder="Email"/>
<input type="password" name="password" placeholder="Password"/>
<button>Login</button>
<p class="form-message">Not registered? <a id="login-toggle">Create an account</a></p>
</form>
</div>
<?php
require "./footer.php";
?>