PHP - Registro

<<>>
 
Vista:

Registro

Publicado por Edwin Uceda (1 intervención) el 26/06/2024 03:07:09
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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
<!DOCTYPE html>
<html lang="es">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Registro en Moodle</title>
    <style>
        body {
            font-family: Arial, sans-serif;
            background-color: #f4f4f4;
            display: flex;
            justify-content: center;
            align-items: center;
            height: 100vh;
            margin: 0;
        }
 
        .form-container {
            background-color: #fff;
            padding: 20px;
            border-radius: 8px;
            box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
            width: 400px;
        }
 
        .form-container h2 {
            margin-bottom: 20px;
            text-align: center;
        }
 
        label {
            display: block;
            margin-bottom: 8px;
            font-weight: bold;
        }
 
        input[type="text"],
        input[type="email"],
        input[type="number"],
        input[type="tel"],
        input[type="date"],
        select {
            width: 100%;
            padding: 10px;
            margin-bottom: 20px;
            border: 1px solid #ccc;
            border-radius: 4px;
        }
 
        button {
            width: 100%;
            padding: 10px;
            background-color: #007bff;
            color: white;
            border: none;
            border-radius: 4px;
            font-size: 16px;
            cursor: pointer;
        }
 
        button:hover {
            background-color: #0056b3;
        }
    </style>
</head>
<body>
    <div class="form-container">
        <h2>Registro en Moodle</h2>
        <form action="register.php" method="post">
            <label for="nombre">Nombre</label>
            <input type="text" id="nombre" name="nombre" required>
 
            <label for="apellidos">Apellidos</label>
            <input type="text" id="apellidos" name="apellidos" required>
 
            <label for="dni">DNI</label>
            <input type="text" id="dni" name="dni" pattern="[0-9]{8}" title="Ingrese un DNI válido (8 dígitos)" required>
 
            <label for="email">Correo Electrónico</label>
            <input type="email" id="email" name="email" required>
 
            <label for="telefono">Teléfono</label>
            <input type="tel" id="telefono" name="telefono" pattern="[0-9]{9}" title="Ingrese un número de teléfono válido (9 dígitos)" required>
 
            <label for="ugel">UGEL</label>
            <input type="text" id="ugel" name="ugel" required>
 
            <label for="fecha_nacimiento">Fecha de Nacimiento</label>
            <input type="date" id="fecha_nacimiento" name="fecha_nacimiento" required>
 
            <label for="region">Región</label>
            <select id="region" name="region" required>
                <option value="">Selecciona una región</option>
                <option value="Lima">Lima</option>
                <option value="Arequipa">Arequipa</option>
                <option value="Cusco">Cusco</option>
                <option value="Puno">Puno</option>
                <!-- Agrega más opciones según las regiones que necesites -->
            </select>
 
            <label for="ciudad">Ciudad</label>
            <input type="text" id="ciudad" name="ciudad" required>
 
            <button type="submit">Registrarse</button>
        </form>
    </div>
</body>
</html>
Valora esta pregunta
Me gusta: Está pregunta es útil y esta claraNo me gusta: Está pregunta no esta clara o no es útil
-1
Responder
Imágen de perfil de Alejandro
Val: 1.634
Plata
Ha mantenido su posición en PHP (en relación al último mes)
Gráfica de PHP

Registro

Publicado por Alejandro (845 intervenciones) el 26/06/2024 19:57:43
  • Alejandro se encuentra ahora conectado en el
  • chat de PHP
¿Cual es la intención de tu publicación?
Valora esta respuesta
Me gusta: Está respuesta es útil y esta claraNo me gusta: Está respuesta no esta clara o no es útil
0
Comentar