if($formSubmit) {
echo "form submitted: $frmName"; //<= have you tried this to make sure
$formSubmit is true?
$newsSubmit = file("news.txt"); //RTM, your not using file() the way it's
inteneded.
$fp = fopen("news.txt", 'a'); //looks good
fwrite($fp, $frmName); //looks good, but does $frmName contain anything?
fclose($fb); //$newsSubmit is not a file pointer and should not be used as
such, use $fp instead.
} else {...
good luck
""Dddogbruce (@home.com)"" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> 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.
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]