Wow, an embarrassment of riches. Thanks to all of you who replied so
quickly.
- Brian
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
At 17:54 3-2-03, you wrote:
if (is_object($_REQUEST['page']))
for me
if (isset($_REQUEST['page']))
works.
I often add a check against an empty value after this check.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--- Brian Dunning <[EMAIL PROTECTED]> wrote:
> All I'm trying to do is check for the presence of a
> query string, but everything I try gives me an
> Undefined Index error.
...
> http://www.mysite.com/index.php?page=hello
>
> if (is_object($_REQUEST['page']))
> $pagename = $_REQUEST['page'];
>
From: "Brian Dunning" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, February 03, 2003 11:54 AM
Subject: [PHP] Need to check whether a param exists!
Hi,
All I'm trying to do is check for the presence of a query string, but
everything I try gives me an Und
Hi,
All I'm trying to do is check for the presence of a query string, but
everything I try gives me an Undefined Index error. I want to set a
variable $pagename to whatever was passed as the ?page= value, and if
it wasn't passed, set it to some default value.
http://www.mysite.com/index.php?pa
5 matches
Mail list logo