Results 1 to 4 of 4
Feb 20, 2008, 10:19 #1
- Join Date
- Jan 2004
- 0 Post(s)
- 0 Thread(s)
$_GET['topic'] an "Undefined Index"?
I'm working on a CMS. Imagine a folder named Topics containing an index page named index.php. The mod-rewrite rules in my .htaccess file assign that folder/page the name "topic."
I posted the following code in one of my top pages, to enable me to display and manipulated a page's URL.
$MyURL = ($_GET['topic']);
$MyURL = rtrim($MyURL, '/');
It's not a major problem, as everything else still works, and it's a low-level error message that my visitors shouldn't see.
But it kind of bugs me when I'm testing my pages. Anyway, is there some way to fix this "error," or to make the error message disappear? Thanks.