Re: Empty $_POST after submit.
| From: | marco@behnke.biz | Date: | Thu, 04 Apr 2013 15:01:08 +0000 |
| Subject: | Re: Empty $_POST after submit. | ||
| References: | 1 2 3 4 5 6 7 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-320785@lists.php.net to get a copy of this message | ||
> Ashley Sheridan <ash@ashleysheridan.co.uk> hat am 4. April 2013 um 13:02
> geschrieben:
>
> I've noticed the first line looks a little odd. It might be valid, just
> probably not the way I've ever done it. For my own sanity, could you try
> changing it to:
>
> if (isset($_POST['lastname']) && isset($_POST['lastname']))
>
No, this is totally valid to check if all values are set
> If multiple parameters are supplied then isset() will return TRUE only if all
> of the parameters are set. Evaluation goes from left to right and stops as
> soon as an unset variable is encountered.