Answers for "make button to submit form"

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
0

how to make a button as submit button

<form>
	<label>Phone: </label>
	<input type="text" required>
	<button> type = "submit" </button>
</form>
Posted by: Guest on September-16-2021

Browse Popular Code Answers by Language