On Tuesday 01 July 2003 22:12, Adam Williams wrote:
> when I do that, nothing is written to news.txt, and I'm not sure why.
Well find out why!
> This is the entire script:
>
> if ($_POST['news'])
> {
> $fp = fopen( "news.txt", "w");
Add some error-checking to see whether fopen() was su
Hi,
when I do that, nothing is written to news.txt, and I'm not sure why.
This is the entire script:
unable to write to news.txt";
exit;
}
Header("Location: http://archives1.mdah.state.ms.us/news.php"; );
}
?>
News update
Please make your changes below and then click
you should use $_POST['news'] instead of "$POST_['news']".
ans you also should'nt put " around variables ;)
> Hello,
> I have a block of code:
> if ($_POST['news'])
> {
> $fp = fopen( "news.txt", "w");
> $success = fwrite( $fp, "$POST_['news']" );
>
3 matches
Mail list logo