Dontknowanything Dude
New member
$nickname = $_POST["nickname"];
$comment = $_POST["comment"];
$fp = fopen("comment.txt", "a");
fwrite($fp, $nickname + "</br />");
fwrite($fp, $comment);
fclose($fp);
Above code does not save stuff correctly on comment.txt
instead of ---nickname--- new line ---comment---- , it gives 0---comment---. Wtf is "0" and where did nickname go? I just want a new line!!!
btw br command is written wrong above but its cuz it doesnt display right in yahoo answers.
I changed br command to "\n\r" but it still makes a space in between rather than a new line
$comment = $_POST["comment"];
$fp = fopen("comment.txt", "a");
fwrite($fp, $nickname + "</br />");
fwrite($fp, $comment);
fclose($fp);
Above code does not save stuff correctly on comment.txt
instead of ---nickname--- new line ---comment---- , it gives 0---comment---. Wtf is "0" and where did nickname go? I just want a new line!!!
btw br command is written wrong above but its cuz it doesnt display right in yahoo answers.
I changed br command to "\n\r" but it still makes a space in between rather than a new line