Answers for "submit action in html"

2

form with a submit button

<form action="/action_page.php">
  <label for="fname">First 
  name:</label><br>
  <input type="text" id="fname" name="fname" 
  value="John"><br>
  <label for="lname">Last name:</label><br>
  
  <input type="text" id="lname" name="lname" value="Doe"><br><br>
  
  <input type="submit" value="Submit">
</form>
Posted by: Guest on June-29-2021
1

form action in html

<!--Answer from W3 Schools-->
<form action="/action_page.php">
  <label for="username">Username:</label>
  <input type="text" id="username" name="username" required>
  <input type="submit">
</form>
Posted by: Guest on July-12-2021

Browse Popular Code Answers by Language