Code: Select all
<?
if (isset($_GET['status']))
{
$status = $_GET['status'];
}
?>
How? Is this even possible?
Thanks,
Mark
Code: Select all
<?
if (isset($_GET['status']))
{
$status = $_GET['status'];
}
?>
Code: Select all
-> $content['page_start'] = '<?';
my $content['page_start'].= 'if (isset($_GET['status']))';
code $content['page_start'].= '{';
here $content['page_start'].= '$status = $_GET['status'];';
$content['page_start'].= '}';
-> $content['page_start'].= '?>';
$content['page_start'] .= '<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">';
$content['page_start'] .= "\n<!--\n phpwcms | free open source content management system\n";
$content['page_start'] .= " created by Oliver Georgi (oliver at phpwcms dot de) and licensed under
GNU/GPL.\n";
$content['page_start'] .= " phpwcms is copyright 2003-2005 of Oliver Georgi. Extensions are
copyright of\n";
$content['page_start'] .= " their respective owners. Visit project page http://www.phpwcms.org for
details.\n//-->\n";
$content['page_start'] .= "<html>\n<head>\n<title>".$content["pagetitle"]."</title>\n";
$content['page_start'] .= '<meta http-equiv="Content-Type" content="text/html; charset=';
$content['page_start'] .= PHPWCMS_CHARSET."\">\n".'<script src="'.TEMPLATE_PATH;
$content['page_start'] .= 'inc_js/frontend.js" type="text/javascript"></script>'."\n";
$content['page_start'] .= '<link rel="stylesheet" type="text/css" href="'.TEMPLATE_PATH;
$content['page_start'] .= "inc_css/".$block["css"]."\" />\n".$block["htmlhead"];
$content['page_start'] .= "\n</head>\n\n<body".$content["body"].">\n";
Nope, you forgot to escape quotes:mstroz wrote:Anyway. I keep getting a parse error. I think it has something to do with the opening <? tag.
Code: Select all
$content['page_start'] = '<?';
$content['page_start'].= 'if (isset($_GET[\'status\']))';
$content['page_start'].= '{';
$content['page_start'].= '$status = $_GET[\'status\'];';
$content['page_start'].= '}';
$content['page_start'].= '?>';
Ah. Thanks. I'm a bit of a PHP 'tard.Nope, you forgot to escape quotes:
The top tab nav (a Flash component) on the secondary level pages passes a variable (when clicked) to the Flash Header on the homepage.I'm not sure what your aim is...