-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathcreate-account.php
55 lines (52 loc) · 2.17 KB
/
create-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
54
55
<?php
session_start();
if($_SESSION['repeatedInfo']==true){
$repeatedInfo = true;
}else{
$repeatedInfo = false;
}
$_SESSION['previouspage']=$_SERVER['HTTP_REFERER'];
?>
<!DOCTYPE html>
<html>
<head>
<title>NOPM | Autobuses de la Mayab</title>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" >
<meta name="viewport" content="width=device-width, initial-scale=1">
<script src="http://code.jquery.com/jquery-1.11.3.min.js"></script>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css" integrity="sha384-1q8mTJOASx8j1Au+a5WDVnPi2lkFfwwEAa8hDDdjZlpLegxhjVME1fgjWPGmkzs7" crossorigin="anonymous">
<link rel="stylesheet" type="text/css" href="https://bootswatch.com/yeti/bootstrap.min.css">
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js" integrity="sha384-0mSbJDEHialfmuBBQP6A4Qrprq5OVfW37PRR3j5ELqxss1yVqOtnepnHVP9aJ7xS" crossorigin="anonymous"></script>
</head>
<body>
<nav class="navbar navbar-default">
<div class="container-fluid">
<div class="navbar-header">
<a class="navbar-brand" href="index.php">Autobuses NOPM</a>
</div>
</div>
</nav>
<?php if ($repeatedInfo):?>
<div class="alert alert-danger">
<a href="#" class="close" data-dismiss="alert" aria-label="close">×</a>
<strong>Error!</strong> Email ya esta asociado a una cuenta!
</div>
<?php endif;
$_SESSION['repeatedInfo']=false;
?>
<div class="container">
<form class="form-horizontal" action='check-userdb.php' method="POST">
<p>Datos del Usuario: </p>
<div class="form-group">
<div class="col-sm-10">
<input type="text" class="form-control" name="Nombre" id="nombre" placeholder="Nombre" required>
<input type="text" class="form-control" name="Apellido" id="apellido" placeholder="Apellido" required>
<input type="text" class="form-control" name="username" id="username" placeholder="Email" required>
<input type="text" class="form-control" name="password" id="password" placeholder="Password" required>
<input type="submit" class="btn btn-default" value="Crear Cuenta">
</div>
</div>
</form>
</div>
</body>
</html>