tryit_yourcode See Results <!DOCTYPE html> <html> <body> <h2>The formaction Attribute</h2> <form action="/sample_page.php"> First name: <input type="text" name="fname"><br><br> Last name: <input type="text" name="lname"><br><br> <input type="submit" value="Submit"><br><br> <input type="submit" formaction="/sample_page2.php" value="Submit the form to another page"> </form> </body> </html>