upload on win2k ->enctype="multipart/form-data" hides variables
| From: | DaNuPaPa | Date: | Tue, 13 Nov 2001 21:54:38 +0000 |
| Subject: | upload on win2k ->enctype="multipart/form-data" hides variables | ||
| Groups: | php.windows | ||
| Request: | Send a blank email to php-windows+get-10391@lists.php.net to get a copy of this message | ||
I'm trying the upload snippets of code found at php.net such as:
<form enctype="multipart/form-data" method="post"
action="upload.php" >
<input type="hidden" name="MAX_FILE_SIZE" value="1000">
Send this file: <input name="userfile" type="file">
<input type="submit" value="Send File">
</form>
followed by a php doc with this in it:
<?PHP
echo "Values submitted via POST method:<br>";
reset ($HTTP_POST_VARS);
while (list ($key, $val) = each ($HTTP_POST_VARS)) {
echo "$key => $val<br>";
}
?>
The problem is that I can't get a value for $userfile whenever I use
enctype="multipart/form-data" in the form tag. I have track vars on but
cannot get any variables to pass to the php doc once that enctype value is
put in the form tag.
Any suggestions?
Mike
TWD