A URL containing a form processing script. Save Your Code. On submit, send the form-data to a file named "action_page.php" (to process the input):
. Most of the servers keep these form processing programs in a bin known as Common Gateway Interface-binaries (cgi-bin) If you click the save button, your code will be saved, and you get a URL you can share with others. The best is to just set form action to your PHP script; if you need to do anything before submission you can just add to onsubmit. Syntax. Use a form mail script. Browser Support. 17.1 Introduction to forms. Syntax .....
Type of value. We use cookies to ensure that we give you the best experience on our website. Following is the syntax −
Let us see an example of HTML Form action Attribute − Example. action = action; Where.action () is a method and action is a variable that stores the url to which the action is to be set. It can be used in the
element. Specifies a URL to which the form's data is sent when submitted. If you want to report an error, or if you want to make a suggestion, do not hesitate to send us an e-mail: element with its action (specifies the address (URL) where to submit the form), method (specifies the HTTP method to use when submitting the form) and enctype (specifies the encoding of the submitted data) attributes, insert a mailto: link, a