Dear all gurus,
I build a table in MySQL, and in the table has a column name artical with text as datatype. I also have a textbox in the html form. When I pasted some texts from word into this textbox and import into database, then I lost all of the indent as well as newline.
I had searched the forum, but I could find any similar result for my question. Your advise is appreciated.
Again thank you very much for sharing your knowledges.
.
insert into mysql keep original format
Moderator: General Moderators
try
see http://www.w3.org/TR/html4/struct/text. ... uote]9.3.4 Preformatted text: The PRE element[/quote]
Code: Select all
<html>
<body>
<pre>a b c d e
xyz</pre>
</body>
</html>- feyd
- Neighborhood Spidermoddy
- Posts: 31559
- Joined: Mon Mar 29, 2004 3:24 pm
- Location: Bothell, Washington, USA
[url=http://forums.devnetwork.net/viewtopic.php?t=30037]Forum Rules[/url] Section 1.1 wrote:3. Do not make multiple, identical posts. This is viewed as spam and will be deleted.