I Figured it out using this:
if ($_SERVER['SCRIPT_FILENAME'] = browse.php ) {
$default = A;
}
Miller, Terion wrote:
I Figured it out using this:
if ($_SERVER['SCRIPT_FILENAME'] = browse.php ) {
$default = A;
}
Jim Lucas wrote:
Miller, Terion wrote:
I Figured it out using this:
if ($_SERVER['SCRIPT_FILENAME'] = browse.php ) {
$default = A;
} else {
$default = ;
}
$letter = isset($_GET['letter'])? $_GET['letter'] :$default ;
unless you are doing more then what you are showing above.
I've been searching php.net for a function to do this:
if page_url('browse.php') {
The $_SERVER global array has this sort of information. The 'PHP_SELF' key
might be what you want:
http://us.php.net/manual/en/reserved.variables.server.php
But where is the code that needs to know? I'm
Ben Dunlap wrote [TWICE]:
The $_SERVER global array has this sort of information. The 'PHP_SELF' key
[8]
Ben
Very sorry for the double-post. Reply-all in Thunderbird News seems a little
overzealous by default.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit:
5 matches
Mail list logo