Hi all,
i have a multiline Textfield and write the contents to a textfile with fputs(). My problem now, is, that my returns from the Textfile
are ignored. Can anyone help me please ?
Here is the code π
<?PHP
print"<form method=post action=$_SERVER[PHP_SELF]>";
function writeNews ($update)
{
$NewsFile = "news_read.txt";
$fp = fopen($NewsFile,"w");
fputs($fp ,$update);
fclose($fp);
}
if (isset($WriteToNews))
{
writeNews ($NewsField);
}
print "<textarea name=NewsField cols=50 rows=2></textarea>";
print "</form</td><p>";
print "<input type=submit name=WriteToNews value=Submit>"
?>
</form>