RE: [PHP] file upload
| From: | Shashank Tripathi | Date: | Sun, 12 Nov 2000 14:11:41 +0000 |
| Subject: | RE: [PHP] file upload | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-24861@lists.php.net to get a copy of this message | ||
Try this:
----------------------------
<html>
<body>
<font face=verdana size=1>
<?
If ($userfile_size <> 0)
{
echo ("File uploaded: $userfile_name (<b>$userfile_type</b> --
$userfile_size bytes)");
}
?>
<form enctype="multipart/form-data" action="<?print($PHP_SELF);?>"
method="POST">
<INPUT TYPE="hidden" name="MAX_FILE_SIZE" value="1000">
Send this file: <br>
<input name="userfile" type="file">
<input type="submit" value="Send File">
</form>
</font>
</body>
</html>
----------------------------
Let me know if this works..
Cheers
</Shanx>
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.198 / Virus Database: 95 - Release Date: 04-Oct-00