hello im new to this forum. im don't know where to ask my problem. im actully too much disappointed not getting the answer... please do me a favour.
i want to know how $HTTP_POST_FILES works... i know how to use it and how to work with it. but i have a very small question i have not yet found the answer on the NET i did a search more then 6 hour. but found nothing and finally decided to ask here..
my question goes here....
i know when an ARRAY of $_HTTP_POST_FILES is processed.
it is processed like this...
$HTTP_POST_FILES['file1']['name'];
$HTTP_POST_FILES['file1']['tmp_name'];
$HTTP_POST_FILES['file1']['size'];
$HTTP_POST_FILES['file1']['name'];
$HTTP_POST_FILES['file1']['error'];
i want to know how values are Assigned by the Browser to this Array.
let me explain
when we use this code in our html form
<form enctype="multipart/form-data" action="uploader1.php" method="post">
<input type="hidden" name="MAX_FILE_SIZE" value="1024" />
Send this file: <input name="userfile" type="file" />
<input type="submit" value="Send File" />
</form>
|
the browser assign the value
1024 to the Variable MAX_FILE_SIZE
|
if we are using get method for any type of processing the values are passed using QueryString.
like
http://somemywebserver/page.php?lname=Adam&lname=Neal
|
i know we can not use GET method with $_FILES
now i want to know how the values are assigned to the $_FILES Array by the browser...