<form action="/page1.php"> Username: <input type="text" name="u"><br> Password: <input type="password" name="p"><br> <button type="submit">Submit</button><br> <button type="submit" formaction="/page2.php">Submit to another page</button> </form>