ok, so here's the code for my new form1.php
<?PHP
ini_set("display_startup_errors","On");
ini_set("display_errors","On");
?>
<?PHP
echo "a b c d e f g h j k l m n o p q r s t u v w x y z";
if (function_exists("file_put_contents")) {
echo "file_put_contents available";
} else {
echo "file_put_contents missing";
}
$fp = fopen("mytestfile.txt","w");
chmod("mytestfile.txt", 0666);
if ($fp !== false) {
fwrite($fp, "test");
fclose($fp);
echo "file created";
} else {
echo "couldn't create test file";
}
echo "a";
$fp = fopen("form1.txt","w");
chmod("mytestfile.txt", 0666);
$filename = "form1.txt";
echo "my filename="$filename;
if (is_writable($filename)) {
echo "The file is writable";
file_put_contents("form1.txt", $_POST["id"] $_POST["email"], FILE_APPEND);
} else {
echo "The file is not writable";
}
echo "hello";
?>
essentially i want it to crap out to the screen a few lines, and generate two files. one should have the contents from the previous page's two text boxes the other should just read test on the inside of it, and well it's not working. shows me with a blank screen and it doesn't generate any files.