simple html post form code example

Example 1: html form

<form action="/action.php">
  <label for="fname">First name:</label><br>
  <input type="text" id="fname" value="Mike"><br><br>
  <label for="lname">Last name:</label><br>
  <input type="text" id="lname" value="Walker"><br><br>
  <input type="submit" value="Submit">
</form>

Example 2: html form post

<form action="/yourPage" method="post">
</form>

Example 3: intput field submit button

<label for="fname">First name:</label><br>
  <input type="text" id="fname" name="fname"><br>