[SOLVED] URL Question
Posted: Tue Jul 12, 2005 9:32 pm
Hi guys,
I'm wondering if you could help me with this question. Basically, I'm looking to examine a URL and determine if there is a query string attached. Basically, I want to do this:
Thanks for any and all help 
Sphen001
I'm wondering if you could help me with this question. Basically, I'm looking to examine a URL and determine if there is a query string attached. Basically, I want to do this:
Code: Select all
<?php
if($query_string)
{
$url = $_SERVER['PHP_SELF'] . '&foo=bar';
}
else
{
$url = $_SERVER['PHP_SELF'] . '?foo=bar';
}
?>Sphen001