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:
Which HTML Tag Allows Users to Specify a File for Uploading
Which HTML Tag Allows Users to Specify a File for Uploading? - PHP Script Tips - Uploading Files to Web Servers
✍: 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.
2007-04-19, 4810👍, 0💬
Popular Posts:
What is the difference between "calloc(...)" and "malloc(...)"? 1. calloc(...) allocates a block of ...
How to measure functional software requirement specification (SRS) documents? Well, we need to defin...
What Happens If One Row Has Missing Columns? - XHTML 1.0 Tutorials - Understanding Tables and Table ...
I have 5 questions please give me the answer ,explanation,suggestions if any?? what is PMP(project m...
How To Select Some Rows from a Table? - MySQL FAQs - SQL SELECT Query Statements with GROUP BY If yo...