Also, I just tried viewing the page source; all I get is the HTML! i.e. <html> ... <body> Name Value </tr></table></html></body> It is ignoring everything after the foreach() even if I put a print"hello world"; after the foreach() it will not display hello world This is crazy! [!--quoteo(post=353574:date=Mar 10 2006, 05:20 AM:name=DarrenFinch)--][div class=\'quotetop\']QUOTE(DarrenFinch @ Mar 10 2006, 05:20 AM) [snapback]353574[/snapback][/div][div class=\'quotemain\'][!--quotec--] Hi, I know I should find some more up to date material - but getting this problems is one way of REALLY understanding the code! I have been following PHP 4 weekend crash course, and I cannot for the life of me get this to work. If I create a form and $_POST to say handler.php handler.php contains <?php phpinfo() ?> // this works - if I scroll down to the variables I can see all the input from the form however, if I change the form to $_POST to handler1.php, which contains <?php //Generic form data parser // Begin HTML page and field table echo "<html><head><title>Check Form</title></head><body><table cellpadding=20 border=1>"; echo "<tr><td><b>Name</b></td><td><b>Value</b></td></tr>"; // For each $_POST value foreach ($_POST as $key => $value) { // Print the key in the first column print "<tr><td>" . $key . " </td>\n"; print "<td>"; // If the field is an empty array, parse it if (is_array($value)) { foreach ($value as $selkey => $selvalue) { print $selkey . " : ". $selvalue ." <br />";} } else { // Else (not array) just print the value // in second column print $value . " "; } print "</td></tr>\n"; } print "</table></body></html>"; ?> All I get is the HTML header Can anyone help please ? [/quote]