[Tue Jul 18 07:50:15 2006] [error] [client <MY IP>] Premature end of script headers: php-script, referer: http://www.mindimaging.com/form1/form1.html
seems like it's in the html, but i can't see anything wrong with this...
form1.html
<html>
<body>
<form id="form1" action="form1.php" method="post">
ID:
<input type="text" name="id" value="ID" />
<br />
Email:
<input type="text" name="email" value="email" />
<br />
<input type="submit" value="Submit your application" />
</form>
</body>
</html>
---------------------------------------------------------------
form1.php
<html>
<body>
<?php
$filename = 'form1.txt';
if (is_writable($filename)) {
echo 'The file is writable';
file_put_contents("form1.txt", array($_POST['id'], $_POST['email']));
} else {
echo 'The file is not writable';
}
?>
</body>
</html>