I'm trying to store user messages from a textarea, into a text file, along with the user's name and date(though lets ignore the date for now).
Lets say the the user, named John, enters the following text into the textarea:
Hello
How are you?
I want the text file to store this as:
John#Hello\nHow are you?
I have tried many ways to remove/replace the newline from the textarea, but the result I get in the text file always looks like this:
John#Hello
How are you?
I just can't make it not go to the next line in the file. I've tried searching and haven't seen anyone having this problem...so perhaps I don't know what I'm doing. Anyone have a solution?