You are here: Re: using mysql_real_escape_string « PHP Programming Language « IT news, forums, messages
Re: using mysql_real_escape_string

Posted by bill on 12/25/06 19:00

BKDotCom wrote:
> bill wrote:
>> The problem is that each time the user returns to the form
>> additional \r\n are appended to the entry.
>>
>> I tried using stripslashes() on the data before I put it into the
>> textarea, with no improvement.
>
> dunno where your linefeeds are comming from, but give trim() a shot.
>
thanks
found them, I had used a PHP indent on my development system and
it put two spaces before everything, including the </textarea> so
the prior line's linefeed and those spaces got included in the
textarea = like it or not.

Seems stupid, but when I took them out, no further problem.

bill

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация