What is Action Attribute?
It contains a URL that defines where to send the data after submitting the form.
It specifies the physical address of the server to which the user data should be redirected at the click of the submit button.
The action property specifies what should happen when the form is submitted.
When a user presses the submit button, the form data is usually transferred to a server file.
The form data is delivered to a file called “action page.php” in the example below. This file includes a server-side script for dealing with form data:
Example:-
Output:-
Latest posts by Ashwani Kumar (see all)
- Top 10 DevOps Trainers in the world - October 7, 2023
- What is Cookies and Why it is Used? - May 24, 2023
- TOP trends of transitions in TikTok - May 10, 2023