Jump to content

[SOLVED] Line breaks in forms as: rn


graham23s

Recommended Posts

Hi Guys,

 

i have noticed that when a user is typing in a form, when they do a line break

 

line 1

line 2

line 3

 

it displays as line 1rn line 2rn line 3rn, i did this:

 

		$comments = mysql_real_escape_string($_POST["comments"]); 
	$comments = stripslashes($comments);

 

not sure if i have done that right it stll displays the same and advice would be great

 

cheers

 

Graham

Link to comment
https://forums.phpfreaks.com/topic/50471-solved-line-breaks-in-forms-as-rn/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.