Re: $_POST value disappearing?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi..

You need to use $_FILES (
http://php.net/manual/pt_BR/reserved.variables.files.php)

Regards,

Jônatas Zechim
PHP & jQuery specialist

http://zechim.com
mob +55 11 7053 2239
skype ID zechim


On 2 August 2011 12:04, Donovan Brooke <lists@xxxxxxx> wrote:

> Hello!,
>
> I must not be understanding something as I would expect 'f_file'
> to show up in the print_r below.:
>
> ---form--
> <form action="index.php" method="post" enctype="multipart/form-data">
>  <input type="hidden" name="f_ap" value="upload" />
>  <input type="hidden" name="f_action" value="doit" />
>  <input type="file"  name="f_file" />
>  <input type="submit" value="Upload" />
> </form>
> ---endform--
>
> --index.php--
> <?php print_r($_POST); ?>
> --/index.php--
>
>
>
>
> The result I get is:
> ------------
> Array
> (
>    [f_ap] => upload
>    [f_action] => doit
> )
> -----------
>
> Can someone enlighten me?
>
> Thanks,
> Donovan
>
>
> --
> D Brooke
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>

[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux