<!DOCTYPE html>
<html>

<p>Results:</p>

<?php 

$firstfield = $_POST['firstfield'];
print ($firstfield);
?>

<p>Hidden:

<?php 
$field = $_POST['hid'];
print ($field);

?>

<p>Selected:

<?php 
$field = $_POST['dropdownstuff'];
if ($field == "firstopt") {
  print ("First");
  print ("Extra thing");
}
else if ($field == "secondopt")
  print ("Second");
else if ($field == "thirdopt")
  print ("Third");
else
  print ("Other");

?>

<table border="1">  <!-- seriously this is terrible style -->
<tr> <td>val1</td> <td>val2</td> </tr>
<tr> <td>val3 and some other stuff</td> <td>val4</td> </tr>
</table>

<form action="do_thing.php" method="POST"
        enctype="multipart/form-data">
Different form!
  <input type="hidden" name="firstfield" value="<?php print $firstfield ?>" />
  <input type="submit" name="submitted" value="Ok" />
  </form>



</html>
