[PHP4]
| From: | Dddogbruce \(@home.com\) | Date: | Sun, 25 Mar 2001 06:05:16 +0000 |
| Subject: | [PHP4] | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-45470@lists.php.net to get a copy of this message | ||
I've defined all the variables in the form, and have all the files..
<HTML>
<TITLE>Submit News</TITLE>
<BODY>
Your news has been processed and added to the main page. Thanks!
<?
if($formSubmit) {
$newsSubmit = file("news.txt");
$fp = fopen("news.txt", 'a');
fwrite($fp, $frmName);
fclose($newsSubmit);
} else {
include ("newsForm.php");
}
?>
</BODY>
</HTML>
See any problems? It won't dump $frmName onto the .txt file.