Re: Passing POST VARS to funciton
| From: | O. | Date: | Fri, 11 Aug 2000 16:50:39 +0000 |
| Subject: | Re: Passing POST VARS to funciton | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-11359@lists.php.net to get a copy of this message | ||
Chris wrote:
>
> Hi, I couldn't find this in the manual.
>
> How can I use all the incoming form values in my function without having to pass every form
> value?
>
> I tried
> updateclient($HTTP_POST_VARS);
> but that does not work. and I really don't want to have to do this:
> updateclient($formvalue1,$formvalue2,$formvalue3, etc ..);
>
> Is there a way to delare all the HTTP_POST_VARS as global or something?
>
Insert this in your function.
global $HTTP_POST_VARS
Then access the post vars like so.
$HTTP_POST_VARS["formcontrolname"]
--
O.