are you passing the value as a url query string?
you might want to upgrade your variable references to account for super global arrays
if(isset($_GET['name']) && $_GET['name'] !== "")
// name=value exists in the url, so do stuff.
Older versions of PHP would use $HTTP_GET_VARS['name']