Jump to content

[SOLVED] My script inserts "rnrn" in to string..why?


EchoFool

Recommended Posts

I have a text area which, with the inputted text goes to an update query and adds it to a text field.

 

 

Now this is what i put before it goes in:

 

<?php
$Start = stripslashes(mysql_real_escape_string($_POST['Start']));
//query here
?>

 

Now the next page echos it:

<?=nl2br(strip_tags($MissionInfo))?>

 

For some unknown reason though, the structure is lost like new lines so it becomes one giant text. And it occasionally adds rnrn to my paragraphs for no reason...

 

Example of block of text:

 

Hello there ! Testing this sentence!Testing this sentence also!rnNow then, i hope this works.rnrn

 

Observe the bold rnrn... why is that happening?

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.