Jesper_Kladden
Donator
Hello y'all.
This time I need help with creating a new line in my msg.txt file.
I've tried about everything. Please do not tell me to google, I've tried.
Could someone help me?
The code is working perfectly. It gets the information from the Textbox(@HTML it's called TextArea), it gets the information into msg.txt.
The problem is that I want to create a new line, because when it enters the report it goes like this:
IP:$ip, REPORT: $REPORTMSG |...IP:$ip, REPORT: $REPORTMSG |...
But I want it to be like this:
IP:$ip, REPORT: $REPORTMSG |...
IP:$ip, REPORT: $REPORTMSG |...
IP:$ip, REPORT: $REPORTMSG |...
IP:$ip, REPORT: $REPORTMSG |...
Then it's easier to read. I hope you all understood my need, and please help me ! (Rep will be done.)
This time I need help with creating a new line in my msg.txt file.
I've tried about everything. Please do not tell me to google, I've tried.
Could someone help me?
PHP:
<?
$IP = $_SERVER['REMOTE_ADDR'];
$REPORTMSG = $_POST['message'];
$string = "IP:$ip, REPORT: $REPORTMSG |... ";
$a = fopen("msg.txt", "a");
fputs($a, $string);
fclose($a);
?>
The code is working perfectly. It gets the information from the Textbox(@HTML it's called TextArea), it gets the information into msg.txt.
The problem is that I want to create a new line, because when it enters the report it goes like this:
IP:$ip, REPORT: $REPORTMSG |...IP:$ip, REPORT: $REPORTMSG |...
But I want it to be like this:
IP:$ip, REPORT: $REPORTMSG |...
IP:$ip, REPORT: $REPORTMSG |...
IP:$ip, REPORT: $REPORTMSG |...
IP:$ip, REPORT: $REPORTMSG |...
Then it's easier to read. I hope you all understood my need, and please help me ! (Rep will be done.)