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 #173548 is a reply to message #173545] Mon, 18 April 2011 18:45 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 20:28:28 +0200 schrieb Thomas 'PointedEars' Lahn:

>
> if (array_key_exists('x', $_GET))
> {
> if ($_GET['x'] == null)
> {
> // ...
> }
> }
>
> would make sense then.

ACK. :)

And combined:

*--- SNIP

if( isset($_GET['x'] ){
//we received the parameter with a value

}else{
if( array_key_exists( 'x', $_GET) ){
//we have a NULLed key

}else{
//we did not receive the parameter at all

}

}

*--- /SNIP


Yours,
Michael

PS: This costs you 1USD (.5USD for P.E. and .5USD for me)! ;)
[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: & - form and session problem!
Next Topic: doctype not found?
Goto Forum:
  

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

Current Time: Fri Nov 29 05:43:33 GMT 2024

Total time taken to generate the page: 0.04328 seconds