<?php
if (isset($_GET['type'])) {
$foo = strtolower($_GET['type']);
} else {
$foo = "iframe";
}
if (strcmp($foo,"object") == 0) {
$type = "object";
} else {
$type = "iframe";
}
?>
<html>
<head>
<title>foo</title></head>
<body>
<h1>This is an <?php echo(ucfirst($type));?></h1>
<p>
It looks like you are viewing this page via <a href="README.html" target="_top">README.html</a>, hence you see the contents of an <?php echo($type);?>. If viewing this page via <a href="index.php" target="_top">index.php</a> you should see the children of the <?php echo($type);?> node, not this paragraph.</p>
</body></html>
|