Re: HTTP POST into PHP

Top Page
Attachments:
Message as email
+ (text/plain)
Delete this message
Reply to this message
Author: Judd Pickell
Date:  
To: plug-discuss
Subject: Re: HTTP POST into PHP
I have found the same problem with my PHP structures. To avoid it, I
now have it return false instead of true so that I have fewer problems
with figuring out what I am returning. Especially since if there is a
problem I am usually returning an array of info back to the main
process.

Although I admit looking at code and seeing:
if (!isitdoingSomething()) { ... }

can seem to be misleading, as you are using a double negative to
equate to true.

Just my lackluster pearls of wisdom..


On Tue, 08 Mar 2005 23:26:17 -0700, Craig White <> wrote:
> On Tue, 2005-03-08 at 10:12 -0700, Craig White wrote:
>
> > So I am really left to think that the above 'var_export' commands simply
> > don't give me a complete dump of all of the data that is POST'ed - is
> > there any way to get a complete dump of this data?
> ---
> thanks to all for great answers. It turned out that I was getting
> everything from var_export and my problem was with the 'control
> structure' testing that I was doing - I hope some of the lessons that I
> am learning will stick with me because they have come at some incredible
> amounts of time suck.
>
> One thing I have learned about php though - is that many of my control
> structures evaluate to true when they shouldn't and I have to be extra
> careful with them.
>
> Craig
>
> ---------------------------------------------------
> PLUG-discuss mailing list -
> To subscribe, unsubscribe, or to change you mail settings:
> http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss
>

---------------------------------------------------
PLUG-discuss mailing list -
To subscribe, unsubscribe, or to change you mail settings:
http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss