Horje

How to Submit a form using the "get" method

Click on the submit button, and the input will be sent to a page on the server called "action_page.php".
index.html
Example: HTML
<form action="/action_page.php" method="get" target="_blank">
  <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>

Output should be:

How to Submit a form using the "get" method




Type:
html
Category:
Web Tutorial
Sub Category:
HTML Attribute
Uploaded by:
Admin