I have a couple more questions, though. First, how do I turn this exclude function off on a page where I do NOT want to ban style sheet na/a1?
I tried deleting the following on the main page:
if($pagetoshow == 'withouta1'){
$includea1 = FALSE;
}else{
$includeaa1 = TRUE; //(or false depending)
}Then I changed TRUE and FALSE in various combinations, but it didn't work.
Next, what am I doing wrong with $statename, in the example below? I tried quotes (""), single quotes ('') and no quotes at all.
<?php
$todayDate = date("m-d-Y");
echo '<title>Freedomware > "$statename"</title>';
echo '<meta name="description" content="ZXZX versus Microsoft" />';
echo '<script src="' . $periods . 'js/swapclass.js" type="text/javascript"></script>';
BELOW IS THE FINAL VERSION:
<?php
$todayDate = date("m-d-Y");
echo '<title>Freedomware > "$statename"</title>';
echo '<meta name="description" content="ZXZX versus Microsoft" />';
echo '<script src="' . $periods . 'js/swapclass.js"<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<?php
$statename = 'Alaska';
$postcode = 'ak';
$linkcode = 'world/na/us/ak';
$periods = '../../../../';
include ("../../../../includes/state/head.php");
if($pagetoshow == 'withouta1'){
$includea1 = FALSE;
}else{
$includeaa1 = TRUE; //(or false depending)
}?> </head>
INCLUDED PAGE"
<?php
$todayDate = date("m-d-Y");
echo '<title>Freedomware > "$statename"</title>';
echo '<meta name="description" content="ZXZX versus Microsoft" />';
echo '<script src="' . $periods . 'js/swapclass.js" type="text/javascript"></script>';
echo '<link href="' . $periods . 'css/a1.css" rel="stylesheet" type="text/css" />';
if($includea1 == TRUE){
echo '<link href="' . $periods . 'css/na/a1.css" rel="stylesheet" type="text/css" />';
}
echo '<link href="' . $periods . 'css/na/rockies.css" rel="stylesheet" type="text/css" />';
?>
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

