thank you for your patients in this i'm sure you get newbies like me all the time I'm more of an admin than a programmer... i'm trying to break into programming more and more though... first semester java at University of Cincinnati
"Premature end of script headers: php-script" is the script error according to the log.
so the form1.php file now looks like this.
form1.php
<html>
<body>
<?php
$filename = 'form1.txt';
if (is_writable($filename)) {
echo 'The file is writable';
} else {
echo 'The file is not writable';
}
?>
<?php
file_put_contents("form1.txt", array($POST['id'], $POST['email']));
// file_put_contents("form1.txt", array($POST['id'], $POST['email']));?>
</body>
</html>
i no longer get the internal server error, and the return doesn't display anything, which i expecting to see either the file is or is not writable line but it's not doing that either...
so, is there possibly something wrong in the html?
form1.html
<html>
<head>
<title>testing</title>
</head>
<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>