<?xml version="1.0"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title>Page comments</title>
		<link>http://www.ssbits.com/home/</link>
		<atom:link href="http://www.ssbits.com/home/" rel="self" type="application/rss+xml" />
		<description></description>

		
		<item>
			<title></title>
			<link>http://www.ssbits.com/newbies/2010/creating-a-simple-contact-form/#PageComment_2422</link>
			<description>Hi Aram,
never had to use a special kind of contact form...now i do. Not realy a contact form, it's an upload form. I need users to upload there stories and photo's to the contentmanager. In fact that's my question..How can i create a submission admin part in the CMS. ( like the one used in the userdefinedform,i just  don't need all the 'stuff' that it brings ).
I do hope you're willing to take this great tut to a next level ;)</description>
			<pubDate></pubDate>
			<dc:creator>RSSName</dc:creator>
			<guid>http://www.ssbits.com/newbies/2010/creating-a-simple-contact-form/#PageComment_2422</guid>
		</item>
		
		<item>
			<title></title>
			<link>http://www.ssbits.com/newbies/2010/creating-a-simple-contact-form/#PageComment_2220</link>
			<description>@jcwacky: To have line breaks appear correctly in the e-mail, add the following before populating the template.

// transform line breaks into '&lt;br&gt;' tags
$line_breaks = array(&quot;\r\n&quot;, &quot;\n&quot;, &quot;\r&quot;);
$data['Comments']=str_replace($line_breaks, '&lt;br /&gt;', $data['Comments']);
</description>
			<pubDate></pubDate>
			<dc:creator>RSSName</dc:creator>
			<guid>http://www.ssbits.com/newbies/2010/creating-a-simple-contact-form/#PageComment_2220</guid>
		</item>
		
		<item>
			<title></title>
			<link>http://www.ssbits.com/newbies/2010/creating-a-simple-contact-form/#PageComment_2167</link>
			<description>Hi Aram, I have an urgent question that I hope you can answer. I am using a multi step form module on SS 2.4 and i am hoping for the inputs from the multi step form to be directed to specific tables in a database which is hosted in Cpanel (PhpMyAdmin). Is this step remotely possible? If it is, could you give a rough idea on how to achieve it?</description>
			<pubDate></pubDate>
			<dc:creator>RSSName</dc:creator>
			<guid>http://www.ssbits.com/newbies/2010/creating-a-simple-contact-form/#PageComment_2167</guid>
		</item>
		
		<item>
			<title></title>
			<link>http://www.ssbits.com/newbies/2010/creating-a-simple-contact-form/#PageComment_1998</link>
			<description>Hi Thomas, that sounds very strange, not come accross that problem before.

You could try escaping the data before passing it to the template like so:

$data['Comments'] = htmlentities($data['Comments'];

Let me know if that helps,

Aram</description>
			<pubDate></pubDate>
			<dc:creator>RSSName</dc:creator>
			<guid>http://www.ssbits.com/newbies/2010/creating-a-simple-contact-form/#PageComment_1998</guid>
		</item>
		
		<item>
			<title></title>
			<link>http://www.ssbits.com/newbies/2010/creating-a-simple-contact-form/#PageComment_1997</link>
			<description>Hi Aram, 
Thanks for a nice tutorial. I'm trying to use the SendContactForm function and everything works fine except that special characters looks VERY special. Maybe they do get double encoded or something...
I have tried different kind of encoding on the data array, but since it is an array it doesn't work and set the charset to UTF-8 in the header: 

$Header = 'MIME-Version: 1.0' . &quot;\r\n&quot; . 'Content-type: text/html; charset=UTF-8' . &quot;\r\n&quot; . 'Content-Transfer-Encoding: quoted-printable' . &quot;\r\n&quot;;
$email = new Email($From, $To, $Subject, $Header);

Is this a known problem when sending data posted in a form like this? Or is it just me? :)

This is how my characters look like: Ãœ Ã¥ Ã¥
If anybody here have experienced similar behaviour, and found a solution to it. It would be great if you could share some of your experience. </description>
			<pubDate></pubDate>
			<dc:creator>RSSName</dc:creator>
			<guid>http://www.ssbits.com/newbies/2010/creating-a-simple-contact-form/#PageComment_1997</guid>
		</item>
		
		<item>
			<title></title>
			<link>http://www.ssbits.com/newbies/2010/creating-a-simple-contact-form/#PageComment_1862</link>
			<description>Will you be updating this to work with SS3?</description>
			<pubDate></pubDate>
			<dc:creator>RSSName</dc:creator>
			<guid>http://www.ssbits.com/newbies/2010/creating-a-simple-contact-form/#PageComment_1862</guid>
		</item>
		
		<item>
			<title></title>
			<link>http://www.ssbits.com/newbies/2010/creating-a-simple-contact-form/#PageComment_1450</link>
			<description>Hi DoubleONeill,

Try a HeaderField() or a LiteralField(), they should do the trick :)

Aram</description>
			<pubDate></pubDate>
			<dc:creator>RSSName</dc:creator>
			<guid>http://www.ssbits.com/newbies/2010/creating-a-simple-contact-form/#PageComment_1450</guid>
		</item>
		
		<item>
			<title></title>
			<link>http://www.ssbits.com/newbies/2010/creating-a-simple-contact-form/#PageComment_1449</link>
			<description>Hi Aram,

I've set up a contact form similarly to the way you have in this example but it's very lengthy and needs breaking up. I want to add subheadings to sections of the form and wanted to know what method you'd recommend. All I can think of is embedding some html tags in the contactpage when setting up the new form fields. For example 

new TextField('Field', '&lt;br /&gt;&lt;p&gt;&lt;b&gt;This is the subheader&lt;/b&gt;&lt;/p&gt;'question'),

It doesn't seem the neatest method and through my limited experience i'm sure this can bring problems later on.

Thanks,

DoubleONeill</description>
			<pubDate></pubDate>
			<dc:creator>RSSName</dc:creator>
			<guid>http://www.ssbits.com/newbies/2010/creating-a-simple-contact-form/#PageComment_1449</guid>
		</item>
		
		<item>
			<title></title>
			<link>http://www.ssbits.com/newbies/2010/creating-a-simple-contact-form/#PageComment_1284</link>
			<description>sfimedia - You would either need to store it as a DataObject accociated to the contact page, or pass the $data back into the template when you render the page after submission:

$templateData = array(
'FormData' =&gt; $data
);
return $this-&gt;customise($templateData);

Then you can use $FormData.Comments in the template to display the comment.

Aram</description>
			<pubDate></pubDate>
			<dc:creator>RSSName</dc:creator>
			<guid>http://www.ssbits.com/newbies/2010/creating-a-simple-contact-form/#PageComment_1284</guid>
		</item>
		
		<item>
			<title></title>
			<link>http://www.ssbits.com/newbies/2010/creating-a-simple-contact-form/#PageComment_1283</link>
			<description>Hi Aram

The reason I need the information to be passed is that I am creating a posting label with details that need to be printed by user. So when the email has been sent I can setup the submitted in a printable page format. Hope this is clear. I have tried a number of things to get the information to show but I think I am a little lost.

Steve</description>
			<pubDate></pubDate>
			<dc:creator>RSSName</dc:creator>
			<guid>http://www.ssbits.com/newbies/2010/creating-a-simple-contact-form/#PageComment_1283</guid>
		</item>
		

	</channel>
</rss>