<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title>form response exhibitor</title>
<meta http-equiv="content-type" content="text/html; charset=UTF-8"/>
</head>
<body>

<h1>Form response exhibitor</h1>

<?php

if((isset($_GET) && count($_GET))
   || (isset($_PUT) && count($_PUT))) {
  print "<h2>This is the data of your form</h2>\n";
  echo "<dl>\n";
  // if it was a GET
  if(isset($_GET)) {
    foreach ($_GET as $key => $value) {
      $value=htmlspecialchars($value);
      echo "<dt>$key</dt><dd>$value</dd>\n";
    }
  }
  if(isset($_PUT)) {
    // if it was a PUT, the same code
    foreach ($_PUT as $key => $value) {
      $value=htmlspecialchars($value);
      echo "<dt>$key</dt><dd>$value</dd>\n";
    }
  }
  echo "</dl>\n";
}
 else {
   print "<div>I am sorry, your form is empty.</div>\n";
 }


?>

<p id="validator">
<a href="http://validator.w3.org/check?uri=referer"><img
    style="border: 0pt"
    src="/valid-xhtml10.png"
    alt="Valid XHTML 1.0!" height="31" width="88" /></a>
</p>
</body>
</html>








Valid XHTML 1.0!