$_POST not always set?

This is a discussion on $_POST not always set? within the PHP Language forums, part of the PHP Programming Forums category; On 30 Apr 2004 00:27:22 GMT Pedro Graca <hexkid@hotpop.com> wrote: > Kelly Thompson wrote: &...


Go Back   Usenet Forums > PHP Programming Forums > PHP Language

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #11 (permalink)  
Old 04-30-2004
Kelly Thompson
 
Posts: n/a
Default Re: $_POST not always set?

On 30 Apr 2004 00:27:22 GMT
Pedro Graca <hexkid@hotpop.com> wrote:

> Kelly Thompson wrote:
> > On 29 Apr 2004 23:05:36 GMT
> > Eric Bohlman <ebohlman@earthlink.net> wrote:
> >
> >> Pedro Graca <hexkid@hotpop.com> wrote in news:c6rtun$fklfl$1@ID-
> >> 203069.news.uni-berlin.de:
> >>
> >> > Or use the $_REQUEST array, which inludes $_GET, $_POST, and
> >> > $_COOKIE :)
> >>
> >> That depends on a setting in php.ini, so I wouldn't recommend it

> >to> newbies or to anyone who doesn't have complete control over
> >their> server. Using it mindlessly can result in code that
> >mysteriously> breaks when moved to another system.

>
> Thank you for pointing that out, Eric.
>
> > Which setting?

>
> gpc_order
>
> In my php.ini it is
>
> gpc_order = "GPC"
>
> so if there is a $_GET['x'], a $_POST['x'], and a $_CCOKIE['x']
> on my configuration $_REQUEST['x'] will be $_COOKIE['x']


Then one more reason to do it yourself with array_merge().
Reply With Quote
  #12 (permalink)  
Old 04-30-2004
lawrence
 
Posts: n/a
Default Re: $_POST not always set?

I often run into situations where there is nothing stored in $_POST.
For me, whenever I run into this, it turns out that the version of PHP
on the server I'm on is pre- version 4.1.
Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT +1. The time now is 08:47 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0