I ve got a LAMP site with a form that a user fills out. For some reason if viewing the returned form submission data on IE 7, it s inserting line breaks between each word. It s a pretty basic form with some input elements and a text area. If I submit the form with FF3+, IE8, or safari this isn t happening and everything looks fine. If a user submits the form with IE7, instead of "This is a description" I m getting:
This
is
a
description.
I ajax提交表格数据,然后清理:
$description = mysql_real_escape_string(ucfirst($_POST[ description ]));
$description = stripslashes(trim($description));
接着更新表格并显示:
$description = undslashes($description_data->description);
。
The data in the table looks fine, no <br />
or
tags to be seen. If I view the source, there are no breaks either, which really doesn t make sense.
我对此感到非常不安,我不敢肯定其他努力。 谁能提供某种指导? 非常感谢。