<?php
if (! array_key_exists("burp", $_POST) )
{
header('Location: http://nrs-projects.humboldt.edu/~st10'.
'/s13cs318/318lect13/clicker1.html');
}
?>
<!DOCTYPE html>
<html>
<!-- demo of clicker question - response -->
<head>
<title> clicker question demo - response </title>
<meta charset="utf-8" />
</head>
<body>
<h1> clicker question demo - response </h1>
<pre>
<?php
// print the contents of an array
/* multi-line
comment */
# also a comment
print_r($_SERVER);
?>
</pre>
<?php
print <<<LOOKY_START
<p> Hello. <br />
$_SERVER[PHP_SELF]
</p>
LOOKY_START;
?>
<p>
from the form, with any tags stripped:
<?= strip_tags($_POST["burp"]) ?>
</p>
<p>
from the form, with any special characters converted:
<?= htmlspecialchars($_POST["burp"]) ?>
</p>
<?php
require_once("my-std-footer.html");
?>