Atributo de acción HTML <formulario>
Ejemplo
Al enviar, envíe los datos del formulario a un archivo llamado "action_page.php" (para procesar la entrada):
<form
action="/action_page.php"
method="get">
<label for="fname">First name:</label>
<input type="text" id="fname"
name="fname"><br><br>
<label for="lname">Last name:</label>
<input type="text" id="lname" name="lname"><br><br>
<input
type="submit" value="Submit">
</form>
Definición y uso
El action
atributo especifica dónde enviar los datos del formulario cuando se envía un formulario.
Compatibilidad con navegador
Attribute | |||||
---|---|---|---|---|---|
action | Yes | Yes | Yes | Yes | Yes |
Sintaxis
<form action="URL">
Valores de atributo
Value | Description |
---|---|
URL | Where to send the form-data when the form is submitted. Possible values:
|
❮ Etiqueta HTML <formulario>