HTML Editor
<!DOCTYPE html> <html lang="en-US"> <body> <form action="/user-name.php" name="myForm"> Name: <input type="text" name="name"> </form> <p>The following button is from nowhere</p> <button type="submit" onclick="myForm.submit();">Submit</button> <p><strong>Note :</strong> Though the submit button is not inside the <strong>form</strong> tag, the form name helps to identify which form is to be submitted when the user click the submit button</p> </body> </html>
OUTPUT
×

Save as Private