Tools, FAQ, Tutorials:
INPUT Tag for File Uploading in PHP
Which HTML Tag Allows Users to Specify a File for Uploading in PHP?
✍: FYIcenter.com
To present an input field on your Web page to allow users to specify a local file to upload, you need to use the <INPUT TYPE="FILE" ...> tag inside a <FORM ...> tag. The <INPUT TYPE="FILE" ...> will be displayed as a text input field followed by a button called "Browse...". Users can either enter the full path name of a local file, or click Browse button to go through a dialog box to select a file interactively. The following PHP code shows you a good example of the file upload tag:
<?php
print("<html><form>\n");
print("<input type=file>\n");
print("<input type=submit>\n");
print("</form></html>\n");
?>
If you copy this script to PHP file and test it on your Web server, you should see a file upload field.
⇒ FORM Tag for Uploading Files in PHP
2016-10-17, ∼2336🔥, 0💬
Popular Posts:
How to search for the first match of a regular expression using re.search()? The re.search() functio...
What is EPUB 3.0 Metadata "dc:publisher" and "dc:rights" elements? EPUB 3.0 Metadata "dc:publisher" ...
How to use the "set-body" Policy Statement for an Azure API service operation? The "set-body" Policy...
Where to get a JSON.stringify() Example Code in JavaScript? Here is a good JSON.stringify() example ...
Where to get the detailed description of the json_encode() Function in PHP? Here is the detailed des...