<!DOCTYPE HTML>
<html>
<head>
  <meta content="text/html; charset=UTF-8" http-equiv="content-type">
  <meta name="author" content="Lin Jensen">
<style>
body   {background: <?php print $_GET['colour'];?>;}
</style>
<title>A form example - the answers</title>
</head>
<body>
<h1> Welcome, 
<?php 
 require_once('addhtml.php');
	$who = $_GET['who'];
	print htmlspecialchars($who);
add_plain ($log, "Visit by $who ============");
?>


</h1>
<?php 
require_once ('/home/jensen/abuse.php');
 error_reporting (E_ALL^E_NOTICE);
  if ($_GET['student'])
  print "You are a student. ";
print ".. and you like these animals"; 
?>
<ul>
<?php
   if ($pets=$_GET['pets'])
     foreach ($pets as $p)
	add_tag_html($page,'li',$p, $log);
   else
   {
?> You dont like any animals? <?php
   } 
   add_tag ($page,'/UL'); 

//   print "<pre>$log</pre>";  write to file instead

// process textarea
$comments = $_GET['comments'];
abuse($comments);     // protection

   add_html($page,"$who's comments:",$log);
   add_html($page, $comments, $log);
   print $page;

$f=fopen("form2.txt",'a') or die ("Can't open file");
   fwrite ($f, $log);
   fwrite ($f, "=======  At ");
   fwrite ($f, date("M d, Y H:i\n"));
fclose($f);
?>
<hr>
Back to <a href="index.html">my page</a>
<hr>
</body></html>