<?xml version="1.0"?><!-- generator="bbPress" -->

<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
>

<channel>
<title>MachForm Community Forums Topic: Upload text in html</title>
<link>https://www.machform.com/forums/</link>
<description>MachForm Community Forums Topic: Upload text in html</description>
<language>en</language>
<pubDate>Mon, 04 May 2026 00:18:23 +0000</pubDate>

<item>
<title>rscott7706 on "Upload text in html"</title>
<link>https://www.machform.com/forums/topic/upload-text-in-html#post-4354</link>
<pubDate>Thu, 22 Jan 2009 00:10:25 +0000</pubDate>
<dc:creator>rscott7706</dc:creator>
<guid isPermaLink="false">4354@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;Top of the morning, redityo&#60;/p&#62;
&#60;p&#62;Works perfectly...  Another support issue defined and dealt with!!&#60;/p&#62;
&#60;p&#62;Thanks for your prompt and professional help.&#60;/p&#62;
&#60;p&#62;Ron
&#60;/p&#62;</description>
</item>
<item>
<title>redityo on "Upload text in html"</title>
<link>https://www.machform.com/forums/topic/upload-text-in-html#post-4353</link>
<pubDate>Wed, 21 Jan 2009 22:22:10 +0000</pubDate>
<dc:creator>redityo</dc:creator>
<guid isPermaLink="false">4353@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;Hi Ron,&#60;/p&#62;
&#60;p&#62;I try to figure it :) ... I hope my answer meet your expectation. Basically text area consider a white space as carriage returns and it will not rendered in HTML.&#60;br /&#62;
However you can use nl2br() function to show the line break in HTML to your output. You can refer to this :&#60;/p&#62;
&#60;p&#62;&#60;a href=&#34;http://www.plus2net.com/php_tutorial/line-breaks.php&#34; rel=&#34;nofollow&#34;&#62;http://www.plus2net.com/php_tutorial/line-breaks.php&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;But if you consider to save &#34;break&#34; tags in database, you should edit your &#34;post-functions.php&#34; file, try to search around line 201. You will see this code :&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;$table_data[$element_name] = $element_data;&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;replace it with &#60;/p&#62;
&#60;pre&#62;&#60;code&#62;if ($form_id == 23 &#38;#38;&#38;#38; $element_id == 2) {
	$table_data[$element_name] = nl2br($element_data)	;
} else {
	$table_data[$element_name] = $element_data;
}&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;in there i assume your paragraph text in form 23 with element id = 2
&#60;/p&#62;</description>
</item>
<item>
<title>rscott7706 on "Upload text in html"</title>
<link>https://www.machform.com/forums/topic/upload-text-in-html#post-4348</link>
<pubDate>Wed, 21 Jan 2009 03:48:40 +0000</pubDate>
<dc:creator>rscott7706</dc:creator>
<guid isPermaLink="false">4348@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;Hey redityo,&#60;/p&#62;
&#60;p&#62;I mislead you.&#60;/p&#62;
&#60;p&#62;What I meant to say was that when typed in to the form and submitted, hard returns don't show up in the database (so my reference to &#34;html tags&#34;).&#60;/p&#62;
&#60;p&#62;Here is a sample:&#60;/p&#62;
&#60;p&#62;&#60;a href=&#34;http://www.lakesideca.com/chamber/chamber_events/chamber_events.php&#34; rel=&#34;nofollow&#34;&#62;http://www.lakesideca.com/chamber/chamber_events/chamber_events.php&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;When entering the text in Machform (Paragraph Text), I put:&#60;/p&#62;
&#60;p&#62;Test&#60;br /&#62;
Hard return&#60;br /&#62;
Test&#60;br /&#62;
Hard Return &#60;/p&#62;
&#60;p&#62;It shows up on the website as:&#60;br /&#62;
Test Hard return Test Hard Return &#60;/p&#62;
&#60;p&#62;I hope I was more clear this time.&#60;/p&#62;
&#60;p&#62;Ron
&#60;/p&#62;</description>
</item>
<item>
<title>redityo on "Upload text in html"</title>
<link>https://www.machform.com/forums/topic/upload-text-in-html#post-4339</link>
<pubDate>Tue, 20 Jan 2009 13:10:19 +0000</pubDate>
<dc:creator>redityo</dc:creator>
<guid isPermaLink="false">4339@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;Hi Ron,&#60;/p&#62;
&#60;p&#62;What HTML tag do you use ? I try with '&#38;lt;br&#38;gt;' , '&#38;lt;P&#38;gt;'  tags it not stripped out. It give me same result with my paragraph text input.
&#60;/p&#62;</description>
</item>
<item>
<title>rscott7706 on "Upload text in html"</title>
<link>https://www.machform.com/forums/topic/upload-text-in-html#post-4337</link>
<pubDate>Tue, 20 Jan 2009 07:44:22 +0000</pubDate>
<dc:creator>rscott7706</dc:creator>
<guid isPermaLink="false">4337@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;I searched for an answer on this, hope I am not asking something that has been answered before.&#60;/p&#62;
&#60;p&#62;On a text paragraph field...&#60;/p&#62;
&#60;p&#62;I would like some forms to upload the text to database with html tags. As it uploads now and populates the database, all tags are stripped out.&#60;/p&#62;
&#60;p&#62;So for instance:&#60;/p&#62;
&#60;p&#62;This is text.&#60;br /&#62;
This is text.&#60;/p&#62;
&#60;p&#62;Becomes:&#60;br /&#62;
This is text.This is text.&#60;/p&#62;
&#60;p&#62;What I would like to see is:&#60;br /&#62;
This is text.  This is text.&#60;/p&#62;
&#60;p&#62;Is there a work around for this?&#60;/p&#62;
&#60;p&#62;Thanks!!&#60;br /&#62;
Ron
&#60;/p&#62;</description>
</item>

</channel>
</rss>
