Re: Parameter passing question [message #173551 is a reply to message #173549] |
Mon, 18 April 2011 19:07 |
Unrest
Messages: 10 Registered: April 2011
Karma:
|
Junior Member |
|
|
Am Mon, 18 Apr 2011 18:54:19 +0000 schrieb Denis McMahon:
> The following should work:
>
> <?php
> if (isset($_GET['x'])) {
> if ($_GET['x'] === "") {
> // an empty string
> } else {
> // a non empty string
> }
> } else {
> // not defined
> }
> ?>
>
> Rgds
>
> Denis McMahon
no it won't. have a look at the other "thread" in here.
his problem is solved there, too. even with commented code! ;)
sidenote: isset evaluates to true only if the variable exists and is not
null.
|
|
|