if(is_array($_POST)) always = TRUE - why?
From: Randell D. (you.can.email.me.at.randelld_at_yahoo.com)
Date: 10/31/03
- Next message: Andy Hassall: "Re: if(is_array($_POST)) always = TRUE - why?"
- Previous message: Gregory: "Re: Variable passing to script to fill html <img src="MyScript.Php?ImageName=KnownGoodData" >"
- Next in thread: Andy Hassall: "Re: if(is_array($_POST)) always = TRUE - why?"
- Reply: Andy Hassall: "Re: if(is_array($_POST)) always = TRUE - why?"
- Reply: Daniel Tryba: "Re: if(is_array($_POST)) always = TRUE - why?"
- Reply: R. Rajesh Jeba Anbiah: "Re: if(is_array($_POST)) always = TRUE - why?"
- Reply: Alan Little: "Re: if(is_array($_POST)) always = TRUE - why?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Thu, 30 Oct 2003 23:00:29 GMT
Folks,
I test if my PHP should process form data by checking if $_POST is an
array - However I always find its condition proves true - Why or
alternatvily, what other method can one use to check for this sort of
situation?
<?
if(is_array($_POST))
{ die("<h1>here</h1>"); }
?>
I have tried isset() too and this also returns TRUE when it should be
false... must I always test with a count($_POST)==0?
ideas/solutions/anyone?
most appreciated - via the newsgroup
thanks
randelld
- Next message: Andy Hassall: "Re: if(is_array($_POST)) always = TRUE - why?"
- Previous message: Gregory: "Re: Variable passing to script to fill html <img src="MyScript.Php?ImageName=KnownGoodData" >"
- Next in thread: Andy Hassall: "Re: if(is_array($_POST)) always = TRUE - why?"
- Reply: Andy Hassall: "Re: if(is_array($_POST)) always = TRUE - why?"
- Reply: Daniel Tryba: "Re: if(is_array($_POST)) always = TRUE - why?"
- Reply: R. Rajesh Jeba Anbiah: "Re: if(is_array($_POST)) always = TRUE - why?"
- Reply: Alan Little: "Re: if(is_array($_POST)) always = TRUE - why?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|