I. agrega.html

1
<!DOCTYPE html>
2
<html lang="es">
3
4
<head>
5
6
 <meta charset="UTF-8">
7
 <meta name="viewport" content="width=device-width">
8
9
 <title>Agregar</title>
10
11
 <script type="module" src="libclienteweb/manejaErrores.js"></script>
12
13
</head>
14
15
<body>
16
17
 <form id="formulario">
18
19
  <h1>Agregar</h1>
20
21
  <p><a href="index.html">Cancelar</a></p>
22
23
  <p>
24
   <label>
25
    Nombre *
26
    <input name="nombre">
27
   </label>
28
  </p>
29
30
  <p>* Obligatorio</p>
31
32
  <p><button type="submit">Agregar</button></p>
33
34
 </form>
35
36
 <script type="module">
37
38
  import {
39
   configuraSubmitAccion
40
  } from "./libclienteweb/configuraSubmitAccion.js"
41
42
  configuraSubmitAccion("api/pasatiempo-agrega.php", formulario, "index.html")
43
44
 </script>
45
46
</body>
47
48
</html>
skip_previous skip_next