Home : Products : Gossamer Links : PHP Front End :

Products: Gossamer Links: PHP Front End: Re: [brewt] get_form_data function.: Edit Log

Here is the list of edits for this post
Re: [brewt] get_form_data function.
In Reply To:
Quote:
Note that the following variable names assume the use of the file upload name 'userfile', as used in the example above:
If it *did* work like this (haven't played with file uploads yet), then it would be $IN['userfile'], $IN['userfile_name'], ...


I just tried this in the get_form_data() routine above the magic quotes call and it seems to work fine..


foreach ($HTTP_POST_FILES as $file => $filearray ) {
foreach ($filearray as $filekey => $fileval) {
$data["$file"."_$filekey"] = $fileval;
}
}

and added $HTTP_POST_FILES to the globals so it would work.


I guess there might be compatibility issues with earlier versions of php that don't use $HTTP_POST_FILES?

R.

Last edited by:

ryel01: Nov 13, 2001, 3:35 PM

Edit Log: