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:
How To Write the FORM Tag Correctly for Uploading Files
How To Write the FORM Tag Correctly for Uploading Files? - PHP Script Tips - Uploading Files to Web Servers
✍: FYIcenter.com
When users clicks the submit button, files specified in the <INPUT TYPE=FILE...> will be transferred from the browser to the Web server. This transferring (uploading) process is controlled by a properly written <FORM...> tag as:
<FORM ACTION=receiving.php METHOD=post ENCTYPE=multipart/form-data>
Note that you must specify METHOD as "post" and ENCTYPE as "multipart/form-data" in order for the uploading process to work. The following PHP code, called logo_upload.php, shows you a complete FORM tag for file uploading:
<?php print("<html><form action=processing_uploaded_files.php" ." method=post enctype=multipart/form-data>\n"); print("Please submit an image file a Web site logo for" ." fyicenter.com:<br>\n"); print("<input type=file name=fyicenter_logo><br>\n"); print("<input type=submit>\n"); print("</form></html>\n"); ?>
2007-04-19, 4674👍, 0💬
Popular Posts:
What is the difference between const char* p and char const* p? In const char* p, the character poin...
How To Divide Query Output into Groups? - MySQL FAQs - SQL SELECT Query Statements with GROUP BY You...
How To Build WHERE Criteria with Web Form Search Fields? - MySQL FAQs - Managing Tables and Running ...
Can you have virtual functions in Java? Yes, all functions in Java are virtual by default. This is a...
What will be printed as the result of the operation below: main() { int x=20,y=35; x=y++ + x++; y= +...