

- Trending Categories
Data Structure
Networking
RDBMS
Operating System
Java
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
Set where to send the form-data when a form is submitted in HTML?
Use the formaction attribute in HTML to set where to send the form-data when a form is submitted in HTML.
Example
You can try to run the following code to implement the formaction attribute −
<!DOCTYPE html> <html> <head> <title>HTML formaction attribute</title> </head> <body> <form action = "/new1.php" method = "get"> Student name: <input type ="text" name = "name"><br> Student Subject: <input type = "text" name = "subject"><br> <button type = "submit">Submit</button><br> <button type = "submit" formaction = "/new2.php">Another page</button> </form> </body> </html>
- Related Questions & Answers
- How to specify where to send the form-data when a form is submitted in HTML?
- Set the text wrap in a form in HTML
- How to get a key/value data set from a HTML form?
- How to specify the HTTP method to use when sending form-data in HTML?
- Execute a script when a reset button in a form is clicked in HTML?
- HTML Design Form
- Set the name of the form the element belongs to in HTML?
- HTML DOM Form object
- HTML Form method Attribute
- HTML Form action Attribute
- How to specify that the form should not be validated when disabled in HTML?
- How to set that the text direction will be submitted in HTML?
- Set the character encodings that are used for form submission in HTML
- Use HTML with jQuery to make a form
- HTML DOM Select form Property
Advertisements