--- 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 > > <?php > if (is_object($_REQUEST['page'])) > $pagename = $_REQUEST['page']; > else > $pagename = "home"; > ?> You want isset($_GET['page']). However, this is not the query string; it is a single variable within the query string. If you want to access the raw query string, use $_SERVER['QUERY_STRING']. Chris -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php