$HTTP_POST_FILES
Posted: Wed Feb 14, 2007 10:41 pm
hello friends im new to this forum...
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
the browser assign the value
if we are using get method for any type of processing the values are passed using QueryString.
like
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...
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
Code: Select all
<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>Code: Select all
1024 to the Variable MAX_FILE_SIZElike
Code: Select all
http://somesite.com/page.php?lname=Adam&lname=Nealnow i want to know how the values are assigned to the $_FILES Array by the browser...