-
Notifications
You must be signed in to change notification settings - Fork 0
/
reg.php
66 lines (54 loc) · 2.64 KB
/
reg.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
<?php
require_once('session_check.php');
$display_err_style= $_SESSION['errCode'] == ERR_NO_ERROR ? 'style="display: none;"' : 'style="display: block;"';
?>
<!DOCTYPE html>
<html lang="en">
<head>
<?php require_once('header.php'); ?>
</head>
<body>
<!-- Intestazione -->
<div class="container-fluid">
<?php require_once('intestazione.php'); ?>
</div>
<!-- Corpo -->
<div class="container">
<div class="row">
<div class="col-sm-3 st_menu"> <!-- menu laterale -->
<?php require_once('menu.php'); ?>
</div>
<div class="col-sm-9 st_main"> <!-- contenuto della pagina -->
<div class="container-fluid">
<div class="row">
<h3>New user registration</h3>
<div class="container-fluid">
<!-- Alert di errore -->
<?php require_once('error_alert.php') ?>
<!-- contenuto della pagina -->
<div class="row">
<div class="col-md-6">
<form name="regForm" method="POST" action="reg_check.php" onsubmit="return validateLRForm()">
<div class="form-group">
<label for="username_p">Username</label>
<input type="text" class="form-control" name="username_p" id="username_p" placeholder="Insert username (max. <?php echo MAX_USN_LEN; ?> characters)">
<label class="form_err_lbl" id="lbl_err_usr" for="username_p" ></label>
</div>
<div class="form-group">
<label class="control-label" for="password_p">Password</label>
<input type="password" class="form-control" name="password_p" id="password_p" placeholder="Insert password (max. <?php echo MAX_PWD_LEN; ?> characters)">
<label class="form_err_lbl" id="lbl_err_usr" for="username_p"></label>
</div>
<button type="submit" class="btn btn-default">Submit</button>
</form>
</div>
</div>
</div>
</div>
</div>
<br>
</div>
</div>
</div>
</body>
</html>