CODE:
<?
$file=fopen("nepster.dat","a") or die("Ошибка");
fputs($file, nl2br($_POST['content']));
fclose($file);
header('Location: index.php');
?>
<?
$file=fopen("nepster.dat","a") or die("Ошибка");
fputs($file, nl2br($_POST['content']));
fclose($file);
header('Location: index.php');
?>
Не чо тоже
Написал
CODE:
<?
$file=fopen("nepster.dat","a") or die("Ошибка");
fputs($file, nl2br("\n", '<br>', $_POST['content']));
fclose($file);
header('Location: index.php');
?>
$file=fopen("nepster.dat","a") or die("Ошибка");
fputs($file, nl2br("\n", '<br>', $_POST['content']));
fclose($file);
header('Location: index.php');
?>
Выдает
CODE:
Warning: Wrong parameter count for nl2br() in S:\home\PlayRest.od.ua\www\forma\add.php on line 4
Warning: Cannot modify header information - headers already sent by (output started at S:\home\PlayRest.od.ua\www\forma\add.php:4) in S:\home\PlayRest.od.ua\www\forma\add.php on line 6
fputs($file, str_replace("\n", '
', $_POST['content']));
Warning: Cannot modify header information - headers already sent by (output started at S:\home\PlayRest.od.ua\www\forma\add.php:4) in S:\home\PlayRest.od.ua\www\forma\add.php on line 6
fputs($file, str_replace("\n", '
', $_POST['content']));
Я просто совсем в пхп не шарю, вот чото не выходит )