I should have played with this some more before I posted more questions.
After fixing an error on the included page, I replaced every instance of
na/a1 on both pages with a1. That seemed to fix everything; the first
style sheet comes through, but the second one is blocked - and I don't
see any error messages.
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 'titleFreedomware gt; $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 'titleFreedomware gt; $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 'titleFreedomware gt; $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