On 8/3/09 7:44 PM, "Shawn McKenzie" <nospam@xxxxxxxxxxxxx> wrote: Miller, Terion wrote: > All of a sudden this stopped working and keeps defaulting to A again > > if ($_SERVER['SCRIPT_FILENAME'] = "browse.php" ) { > > $default = "A"; > > } > > > else { > > $default = ""; > > } > It stopped working or never worked because your if statement is wrong == -- Thanks! -Shawn http://www.spidean.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php Right, I need to mark this one resolved I finally got it to work with this: // Main controller which page to show. if (isset($_GET['letter'])) { browse($_GET['letter']); } elseif (basename($_SERVER['SCRIPT_FILENAME']) == "browse.php" ) { browse('A'); } else { index(); } -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php