Tools, FAQ, Tutorials:
FORM Tag for Uploading Files in PHP
How To Write the FORM Tag Correctly for Uploading Files in PHP?
✍: 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"); ?>
⇒ Getting Uploaded File Information in PHP
⇐ INPUT Tag for File Uploading in PHP
2016-10-17, 1837🔥, 0💬
Popular Posts:
How to use the Atom Online Validator at w3.org? w3.org feed validation service is provided at http:/...
How to use "json-to-xml" Azure API Policy Statement? The "json-to-xml" Policy Statement allows you t...
How to install "C++/CLI Support" component in Visual Studio? I need to build my Visual Studio C++/CL...
How To Read Data from Keyboard (Standard Input) in PHP? If you want to read data from the standard i...
How To Read the Entire File into a Single String in PHP? If you have a file, and you want to read th...