[thelist] PHP $_FILES Question
Michal Migurski
mike at teczno.com
Tue Sep 14 11:04:57 CDT 2004
> The PHP method of uploading files is most commonly associated with the
> $_FILES command(s).
$_FILES is an array, not a command - it's just where PHP puts the
uploaded data for you.
> Is this a POST only approach? Or is there a GET
> alternative?
Yes, it only works with POST. In Safari, the form's
enctype="multipart/form-data" overrides method="get", and send
everything through as a POST request. If you really need some of those
variables in the query string, you can of course append them to the
form's action attribute manually:
<form enctype="multipart/form-data" method="post"
action="submit.php?variable=<?= $value ?>" />
------------------------------------------------------
michal migurski- contact info, blog, and pgp key:
sf/ca http://mike.teczno.com/contact.html
More information about the thelist
mailing list