Re: $HTTP_POST_VARS problem
| From: | Jason Wong | Date: | Mon, 16 Dec 2002 15:58:39 +0000 |
| Subject: | Re: $HTTP_POST_VARS problem | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-128409@lists.php.net to get a copy of this message | ||
On Monday 16 December 2002 23:48, Lee P. Reilly wrote:
> Hi there,
>
> I'm currently using PHP 4.2.2 and I am have encountered some problems
> when trying to access $HTTP_POST_VARS. The following statements have the
> following return values:
>
> echo $HTTP_POST_VARS['userfile'];
> => C:\\Documents and Settings\\Administrator\\Desktop\\IR Files\\gmp1.ir
Better to use $_POST.
> echo $userfile;
> => C:\\Documents and Settings\\Administrator\\Desktop\\IR Files\\gmp1.ir
>
> echo $HTTP_POST_VARS['userfile']['name'];
> => NOTHING RETURNED
Use $_FILES.
--
Jason Wong -> Gremlins Associates -> www.gremlins.biz
Open Source Software Systems Integrators
* Web Design & Hosting * Internet & Intranet Applications Development *
/*
In a gathering of two or more people, when a lighted cigarette is
placed in an ashtray, the smoke will waft into the face of the non-smoker.
*/