DanyalSakrani Posted March 9, 2007 Author Share Posted March 9, 2007 OK so that works. There must be something in your code which escapes the newlines characters. Not sure what's up but I will have a look. @ redarrow like i said was your action='' and char-set No that was my code DanyalSakrani said worked. Yeah. I added the action, and removed the char-set. It didn't work. And thanks Quote Link to comment Share on other sites More sharing options...
redarrow Posted March 9, 2007 Share Posted March 9, 2007 wildteen you solved it ok, but if you look at my replies surly he could of seen what i ment, well done mate what would this place be like without your grate work. i tried ok sorry but good luck m8. Quote Link to comment Share on other sites More sharing options...
wildteen88 Posted March 9, 2007 Share Posted March 9, 2007 I have solved it. As he/she has yet to be able to find out why his script is not converting the newlines. I ahve just simply did a bit of basic debugging to see if its the server that is at fault. But as my code is running as it should then I have assumed it must be something is his/her script that is not quite right. ALso by the way this post: accept-charset='iso-8859-1 <<<<<<<<<<, this is why try without it ok. No offence but makes no sense at all! At least provide an example and explain where its supposed to go. Rather than just posting a snippet and saying use that. Quote Link to comment Share on other sites More sharing options...
DanyalSakrani Posted March 9, 2007 Author Share Posted March 9, 2007 I have solved it. As he/she has yet to be able to find out why his script is not converting the newlines. I ahve just simply did a bit of basic debugging to see if its the server that is at fault. But as my code is running as it should then I have assumed it must be something is his/her script that is not quite right. ALso by the way this post: accept-charset='iso-8859-1 <<<<<<<<<<, this is why try without it ok. No offence but makes no sense at all! At least provide an example and explain where its supposed to go. Rather than just posting a snippet and saying use that. Hey, you know how to fix it? . Can you post the solution? Thanks! Quote Link to comment Share on other sites More sharing options...
wildteen88 Posted March 9, 2007 Share Posted March 9, 2007 Oops! I did a typo there I meant I have not solved it not I have not solved Sorry to disappoint. I am looking at your script. Quote Link to comment Share on other sites More sharing options...
DanyalSakrani Posted March 9, 2007 Author Share Posted March 9, 2007 Lol. It happens. Thanks . Quote Link to comment Share on other sites More sharing options...
DanyalSakrani Posted March 9, 2007 Author Share Posted March 9, 2007 While wildteen is helping me, can someone else help me too? o.o Quote Link to comment Share on other sites More sharing options...
jcbarr Posted March 9, 2007 Share Posted March 9, 2007 I thought that nl2br only worked when echoing data, not when inserting it in to a database... I have always just had the user fill out a text box where they hit enter for a new line. Then insert it in to a TEXT field in my table. Then when I display it I use nl2br. I have never had any problems with that. Quote Link to comment Share on other sites More sharing options...
DanyalSakrani Posted March 9, 2007 Author Share Posted March 9, 2007 Well when my user enters the information, every linebreak is replaced by "rn" for some reason. Quote Link to comment Share on other sites More sharing options...
jcbarr Posted March 9, 2007 Share Posted March 9, 2007 The column that they are entering it in, what is the format of it? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.