-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathindex.php
More file actions
52 lines (47 loc) · 1.68 KB
/
index.php
File metadata and controls
52 lines (47 loc) · 1.68 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
41
42
43
44
45
46
47
48
49
50
51
52
<?php
session_start();
if (isset($_SESSION['unique_id'])) {
header("location: users.php");
}
?>
<?php include_once "header.php"; ?>
<body>
<div class="wrapper">
<section class="form signup">
<header>Sistema de Chat en Línea en PHP y MySQL</header>
<form action="#" method="POST" enctype="multipart/form-data" autocomplete="off">
<div class="error-text"></div>
<div class="name-details">
<div class="field input">
<label>Tu nombre</label>
<input type="text" name="fname" placeholder="Nombre" required>
</div>
<div class="field input">
<label>Tu apellido</label>
<input type="text" name="lname" placeholder="Apellido" required>
</div>
</div>
<div class="field input">
<label>Correo</label>
<input type="text" name="email" placeholder="tucorreo@correo.com" required>
</div>
<div class="field input">
<label>Contraseña</label>
<input type="password" name="password" placeholder="Ingresa tu contraseña" required>
<i class="fas fa-eye"></i>
</div>
<div class="field image">
<label>Tu Avatar</label>
<input type="file" name="image" accept="image/x-png,image/gif,image/jpeg,image/jpg" required>
</div>
<div class="field button">
<input type="submit" name="submit" value="Acceder al Chat">
</div>
</form>
<div class="link">Ya te has registrado? <a href="login.php">Ingresa desde acá</a></div>
</section>
</div>
<script src="javascript/pass-show-hide.js"></script>
<script src="javascript/signup.js"></script>
</body>
</html>