Hi everybody. Here is my problem. In my editor I wrote :
1
2
3
Then I Submit, retrieve the content from the $_POST variable and print it out. But the single blank lines became double blank lines. In View Source I see :
<p>1</p><br />
<p>2</p><br />
<p>3</p>
So FCKeditor apparently adds <br /> where there is no <br />. Why does he do that ?? And if he does that, why this problem is no affecting every single user of FCKeditor ?
Please advice
1
2
3
Then I Submit, retrieve the content from the $_POST variable and print it out. But the single blank lines became double blank lines. In View Source I see :
<p>1</p><br />
<p>2</p><br />
<p>3</p>
So FCKeditor apparently adds <br /> where there is no <br />. Why does he do that ?? And if he does that, why this problem is no affecting every single user of FCKeditor ?
Please advice
Re: Where those blank lines come from?
HELP
Re: Where those blank lines come from?
Re: Where those blank lines come from?
In FCKeditor I write :
1
2
3
I click Submit and in the next page I retrieve the text from the $_POST. Before inserting it into my MySQL table I print it out. It looks OK, single blank lines remained single blank lines, the problem does not occured yet. In my View Source I see :
1<br />
<br />
2<br />
<br />
3<br />
So far so good, the problem is when I put that in my MySQL table. After insertion, I go in PhyMyAdmin and check the content of the field, and this is the horrible thing I see :
1<br /><br />
<br /><br />
2<br /><br />
<br /><br />
3<br />
Why does this happen ???
HELP !
Re: Where those blank lines come from?
Put a form with a textarea. Write there the HTML as seen in the source of FCKeditor. Now send it to your script to save the data and check the contents of the database.
Re: Where those blank lines come from?
Then I replaced the FCKeditor textarea by a normal one, and the <br /></br /> remained <br /></br />.
So I guess my FCKeditor has definitely a problem !
Re: Where those blank lines come from?