Joe Stump wrote:
>
> I'm in the habit of putting all my form variables into an array (ie:
> <input type="text" name="f[firstname]" value="<? echo $f['firstname']; ?>">) so
> that I have a nice little package to pass to functions. My question is can you
> put files into those as well? If so how does it handle the $file_name and
> $file_size variables PHP creates?
>
> --Joe
>
> /******************************************************************************\
> * Joe Stump - PHP/SQL/HTML Developer *
> * http://www.care2.com - http://www.miester.org - http://gtk.php-coder.net *
> * "Better to double your money on mediocrity than lose it all on a dream." *
> \******************************************************************************/
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
Yes. You can just make a file-upload element in your form. E.g.:
<INPUT type="file" name="f[myFile]">
In your "result-page" you can use the uploaded file pretty
straightforward:
temp-filename: $f[myFile]
filename: $f_name[myFile]
size: $f_size[myFile]
mimetype: $f_type[myFile]
--
* R&zE:
***************************
** Renze Munnik
**
** E: [EMAIL PROTECTED]
** M: +31 6 218 111 43
***************************
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]