On submit, send the form-data to a file named "action_page.php" (to process the input):
The action
attribute specifies where to send the form-data when a form is submitted.
<form action="URL">
Value | Description |
---|---|
URL | Where to send the form-data when the form is submitted.
Possible values:
|
Example:
HTML
<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>
Type: | Html |
Category: | Web Tutorial |
Sub Category: | HTML Tag |
Uploaded by: | Admin |