I am trying to write a script that will include a select menu in a form depending on what page the user has just come from.
$url = basename($HTTP_REFERER);
if ($url == "index.htm" || "new_client.php")
{
include "client_list.inc";
echo $url;
}
If I eliminate the logical or, this script works and only include client_list.inc from the page stated in the if condition. If I keep the logical or, then the include file is included regardless or where the user came from. Does anyone know why this happens. If I break this code out into an if/elseif it works. Thanks for any help.