E
Edwin van der Vaart
G'day,
I'm trying to create an alternative frame with a php script.
I was trying to convert a php style sheet switch mechanisme into a php
content switch.
Style sheet switch mechanisme:
<?php
$s = $_GET['style'];
if (!($s)) { $s = 'style'; }
?>
<link rel="stylesheet" type="text/css" <?php echo ' href="' . $s .
'.css"'; ?> >
<a href="index.php?style=vert#vertical">Vertical css rollover</a>
Content switch:
<?php
$s = $_GET['php'];
if (!($s)) { $s = 'php'; }
?>
<a href="index.php?php=test.php#opleiding">Mijn opleiding</a>
<?php include("' . $s . '.php"); ?>
I got a "Parse error: parse error in ../../../index.php on line...
What am I doing wrong with the above content switch script?
I'm trying to create an alternative frame with a php script.
I was trying to convert a php style sheet switch mechanisme into a php
content switch.
Style sheet switch mechanisme:
<?php
$s = $_GET['style'];
if (!($s)) { $s = 'style'; }
?>
<link rel="stylesheet" type="text/css" <?php echo ' href="' . $s .
'.css"'; ?> >
<a href="index.php?style=vert#vertical">Vertical css rollover</a>
Content switch:
<?php
$s = $_GET['php'];
if (!($s)) { $s = 'php'; }
?>
<a href="index.php?php=test.php#opleiding">Mijn opleiding</a>
<?php include("' . $s . '.php"); ?>
I got a "Parse error: parse error in ../../../index.php on line...
What am I doing wrong with the above content switch script?