Title Text Goes Here


The Form's Action Attribute and the Submit Button



Download 2.8 Mb.
View original pdf
Page31/37
Date16.06.2022
Size2.8 Mb.
#59010
1   ...   27   28   29   30   31   32   33   34   ...   37
com-225-web-technology-theory
The Form's Action Attribute and the Submit Button
When the user clicks on the "Submit" button, the content of the form is sent to another file. The form's action attribute defines the name of the file to send the content to. The file defined in the action attribute usually does something with the received input.
Username


How it looks in a browser Username
Submit
If you type some characters in the text field above, and click the "Submit" button, you will send your input to a page called "html_form_action.asp". That page will show you the received input. The following HTML code segment is needed to produce a reset and submit button



The above HTML code segment would produce the following results in a web browser
Reset
Submit

TYPE THE DOCUMENT TITLE
65 TAG NAME select PURPOSE This element creates a pull-down menu. The

TYPE THE DOCUMENT TITLE
66 TAG NAME textarea PURPOSE This element specifies a multi-line text area. The columns and rows attributes in the
The above HTML code segment would produce the following results in a web browser Enter comments
Start...
Overview When the "submit" button is clicked, the form data is sent to a CGI program (specified in the action attribute of
tag which should be running on a web server. The CGI program receives the form data and processes the data. If the CGI program is not created, the HTML form basically serves only a visual appeal with no interaction or processing capabilities. It will only look like an online form is on a web page until a CGI program is implemented to process the active form data.

TYPE THE DOCUMENT TITLE
67

Download 2.8 Mb.

Share with your friends:
1   ...   27   28   29   30   31   32   33   34   ...   37




The database is protected by copyright ©ininet.org 2024
send message

    Main page