HTML code for a form with a submit button.

First name:

Last name:


If you click the "Submit" button, the form-data will be sent to a page called "action_page.php".


<!DOCTYPE html>
<html>
<body>
<form action="action_page.php">
  First name:<br>
  <input type="text" name="firstname" value="Mickey">
  <br>
  Last name:<br>
  <input type="text" name="lastname" value="Mouse">
  <br><br>
  <input type="submit" value="Submit">
</form>
<p>If you click the "Submit" button, the form-data will be sent to a page called "action_page.php".</p>
</body>
</html>