Categories:
.NET (357)
C (330)
C++ (183)
CSS (84)
DBA (2)
General (7)
HTML (4)
Java (574)
JavaScript (106)
JSP (66)
Oracle (114)
Perl (46)
Perl (1)
PHP (1)
PL/SQL (1)
RSS (51)
Software QA (13)
SQL Server (1)
Windows (1)
XHTML (173)
Other Resources:
What Are the Attributes of a FORM Element
What Are the Attributes of a FORM Element? - XHTML 1.0 Tutorials - Understanding Forms and Input Fields
✍: FYIcenter.com
There are 3 commonly used attributes for a "form" element:
The URL of the form processing program is usually given to you by the Webmaster. You just put it into the "action" attribute directly. If you specify an empty "action" attribute, the URL of the current XHTML document will be used to submit the form data.
From an XHTML document author's point of view, method="get" and method="post" have no differences. Both of them will submit viewers input data to the submission program specified in the "action' attribute.
The default setting for enctype="application/x-www-form-urlencoded" for most of your forms. But you want upload files through a form, you need to use enctype="multipart/form-data" and method="post".
Some examples of "form" element with different attributes:
<!-- Submitting to the URL of the current document --> <form action=""></form> <!-- Submitting to a perl program --> <form action="/cgi-bin/survey.pl"></form> <!-- Submitting to a PHP program --> <form action="/survey.php" method="post"></form> <!-- Submitting to a PHP program for file uploading --> <form action="/upload.php" method="post" enctype="multipart/form-data"></form>
2007-05-12, 4740👍, 0💬
Popular Posts:
Can Multiple Cursors Being Opened at the Same Time? - Oracle DBA FAQ - Working with Cursors in PL/SQ...
Can an anonymous class be declared as implementing an interface and extending a class? An anonymous ...
Where are cookies actually stored on the hard disk? This depends on the user's browser and OS. In th...
If we have multiple AFTER Triggers on table how can we define the sequence of the triggers ? If a ta...
Write down the equivalent pointer expression for referring the same element a[i][j][k][l]? a[i] == *...