FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » Parameter passing question
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: Parameter passing question [message #173551 is a reply to message #173549] Mon, 18 April 2011 19:07 Go to previous messageGo to previous message
Unrest is currently offline  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.
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: &amp; - form and session problem!
Next Topic: doctype not found?
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Fri Nov 22 06:35:43 GMT 2024

Total time taken to generate the page: 0.04197 seconds