-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathregistrarse.php
More file actions
40 lines (37 loc) · 1.47 KB
/
registrarse.php
File metadata and controls
40 lines (37 loc) · 1.47 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
<?php
session_start();
if (isset($_SESSION["id"])){
header("location: index.php");
exit("IDK");
}
?>
<!DOCTYPE html>
<html lang="en">
<head>
<link rel="stylesheet" href="css/si.css">
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Registrarse</title>
</head>
<body background="img/puerta.jpg">
<section class="iniciar2">
<form method="post" action="resRegistro.php" onsubmit="registro(event, this)">
<label for="nombre">Nombre(s)</label><br>
<input class="control" type="text" id="nombre" name="nombre" required minlength="4"><br>
<label for="apellido">Apellidos</label><br>
<input class="control" type="text" id="apellido" name="apellido" required minlength="4"><br>
<label for="usuario">Nombre de Usuario:</label><br>
<input class="control" type="text" id="usuario" name="usuario" required minlength="6"><br>
<label for="contra">Contraseña</label><br>
<input class="control" type="password" name="pass" id="contra" required minlength="6"><br>
<span id="respuesta"></span>
<input class="boton" type="submit" value="Enviar">
</form>
<a href="login.php">
<button class="boton">Cancelar</button>
</a>
</section>
<script src="js/ajaxLogin.js"></script>
</body>
</html>