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 #173541 is a reply to message #173540] Mon, 18 April 2011 18:14 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 17:42:31 +0000 schrieb Denis McMahon:
> <?php
> if (isset($_GET['x'])) {
> if ($_GET['x'] == null) {
> // it's null
> } else {
> // it has data
> }
> } else {
> // it's not defined
> }
> ?>
>

isset() checks if a variable exists and _is not null_.
-> http://de.php.net/manual/en/function.isset.php

so your "if ($_GET['x'] == null)" will never evaluate to true.


Yours,
Michael
[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 11:17:38 GMT 2024

Total time taken to generate the page: 0.03445 seconds