- index.html
- style.css
HTML
<!DOCTYPE html>
<html lang="es">
<head>
<meta charset="utf-8">
<title>Un campo oculto</title>
<link rel="stylesheet" href="style.css">
</head>
<body>
<h1>Pago de servicios</h1>
<form action="https://codigoheroe.com/echo" method="post">
<label>
Monto del pago:
<input type="text" name="amount" value="500"> pesos
</label>
<!-- Agrega el campo aquí -->
<input type="submit" value="Pagar">
</form>
</body>
</html>
CSS
input[type="submit"] {
display: block;
margin-top: 10px;
}
Ha ido a otra página
ObjetivosRealizado
0
- Agrega un campo oculto con el nombre
account_numbery el valor15. - Envía el formulario y observa qué datos se enviaron.