<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Creating a Contact Page From Scratch in WordPress</title>
	<atom:link href="http://wpcanyon.com/tutorials/creating-a-contact-page-from-scratch-in-wordpress/feed/" rel="self" type="application/rss+xml" />
	<link>http://wpcanyon.com/tutorials/creating-a-contact-page-from-scratch-in-wordpress/</link>
	<description>Wordpress tutorials, articles, hacks, tricks and many more</description>
	<lastBuildDate>Fri, 29 Apr 2011 23:36:43 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Shane</title>
		<link>http://wpcanyon.com/tutorials/creating-a-contact-page-from-scratch-in-wordpress/comment-page-1/#comment-9006</link>
		<dc:creator>Shane</dc:creator>
		<pubDate>Fri, 04 Feb 2011 21:24:05 +0000</pubDate>
		<guid isPermaLink="false">http://wpcanyon.com/?p=561#comment-9006</guid>
		<description>This is great, works like a charm :). Only thing is that when its emailed to me the person who sends it is Apache.</description>
		<content:encoded><![CDATA[<p>This is great, works like a charm <img src='http://wpcanyon.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> . Only thing is that when its emailed to me the person who sends it is Apache.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: buster</title>
		<link>http://wpcanyon.com/tutorials/creating-a-contact-page-from-scratch-in-wordpress/comment-page-1/#comment-6383</link>
		<dc:creator>buster</dc:creator>
		<pubDate>Fri, 10 Dec 2010 23:47:31 +0000</pubDate>
		<guid isPermaLink="false">http://wpcanyon.com/?p=561#comment-6383</guid>
		<description>please help on the steps after 4. The second php part (module placement is not clear to me) and are the error messages part of the code in the form</description>
		<content:encoded><![CDATA[<p>please help on the steps after 4. The second php part (module placement is not clear to me) and are the error messages part of the code in the form</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Matti</title>
		<link>http://wpcanyon.com/tutorials/creating-a-contact-page-from-scratch-in-wordpress/comment-page-1/#comment-4822</link>
		<dc:creator>Matti</dc:creator>
		<pubDate>Wed, 27 Oct 2010 09:31:15 +0000</pubDate>
		<guid isPermaLink="false">http://wpcanyon.com/?p=561#comment-4822</guid>
		<description>I was wondering whether a captcha style image verification could be added to this contact form in order to cut down on the spam/junk mail I am receiving, do you think this is possible?</description>
		<content:encoded><![CDATA[<p>I was wondering whether a captcha style image verification could be added to this contact form in order to cut down on the spam/junk mail I am receiving, do you think this is possible?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mike Hurn</title>
		<link>http://wpcanyon.com/tutorials/creating-a-contact-page-from-scratch-in-wordpress/comment-page-1/#comment-4161</link>
		<dc:creator>Mike Hurn</dc:creator>
		<pubDate>Mon, 11 Oct 2010 11:52:32 +0000</pubDate>
		<guid isPermaLink="false">http://wpcanyon.com/?p=561#comment-4161</guid>
		<description>Hi,

Thank you for the helpful tutorial.

I am working on a variation ‘form to blog/post’.

I can get it to write a new post but I cannot get it to take my input into the post.

Hard coded text for the ‘content’ works ok.

But when I try and build a content string from one the form elements I only get “”.

What I want to do is present a form with a Parent Category and let the user select from one of the sub-categories.  Use the input and some backend processing to build the ‘content’ of the blog and then post it!

In a simple example I would want to do:

$content = $c_subject . $c_message

      $post_data = array(
        &#039;blog_ID&#039; =&gt; null,
        &#039;post_author&#039; =&gt; (($user-&gt;ID)?$user-&gt;ID:1),
        &#039;post_date&#039; =&gt; date(&#039;Y-m-d H:i:s&#039;, current_time(&#039;timestamp&#039;)),
        &#039;post_date_gmt&#039; =&gt; date(&#039;Y-m-d H:i:s&#039;, current_time(&#039;timestamp&#039;)),
        &#039;post_content&#039; =&gt; $content,
        &#039;post_title&#039; =&gt; &quot;Test question post $post_title&quot;,

        &#039;post_category&#039; =&gt; array(),
        &#039;post_status&#039; =&gt; &#039;publish&#039;
      );

      $post_ID = wp_insert_post($post_data);</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>Thank you for the helpful tutorial.</p>
<p>I am working on a variation ‘form to blog/post’.</p>
<p>I can get it to write a new post but I cannot get it to take my input into the post.</p>
<p>Hard coded text for the ‘content’ works ok.</p>
<p>But when I try and build a content string from one the form elements I only get “”.</p>
<p>What I want to do is present a form with a Parent Category and let the user select from one of the sub-categories.  Use the input and some backend processing to build the ‘content’ of the blog and then post it!</p>
<p>In a simple example I would want to do:</p>
<p>$content = $c_subject . $c_message</p>
<p>      $post_data = array(<br />
        &#8216;blog_ID&#8217; =&gt; null,<br />
        &#8216;post_author&#8217; =&gt; (($user-&gt;ID)?$user-&gt;ID:1),<br />
        &#8216;post_date&#8217; =&gt; date(&#8216;Y-m-d H:i:s&#8217;, current_time(&#8216;timestamp&#8217;)),<br />
        &#8216;post_date_gmt&#8217; =&gt; date(&#8216;Y-m-d H:i:s&#8217;, current_time(&#8216;timestamp&#8217;)),<br />
        &#8216;post_content&#8217; =&gt; $content,<br />
        &#8216;post_title&#8217; =&gt; &#8220;Test question post $post_title&#8221;,</p>
<p>        &#8216;post_category&#8217; =&gt; array(),<br />
        &#8216;post_status&#8217; =&gt; &#8216;publish&#8217;<br />
      );</p>
<p>      $post_ID = wp_insert_post($post_data);</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Aayush</title>
		<link>http://wpcanyon.com/tutorials/creating-a-contact-page-from-scratch-in-wordpress/comment-page-1/#comment-4129</link>
		<dc:creator>Aayush</dc:creator>
		<pubDate>Wed, 06 Oct 2010 21:35:06 +0000</pubDate>
		<guid isPermaLink="false">http://wpcanyon.com/?p=561#comment-4129</guid>
		<description>You&#039;re awesome...I need this for a tip-us form...when I read the title I was hoping you won&#039;t use a plugin...just perfect</description>
		<content:encoded><![CDATA[<p>You&#8217;re awesome&#8230;I need this for a tip-us form&#8230;when I read the title I was hoping you won&#8217;t use a plugin&#8230;just perfect</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Daniel Suarez</title>
		<link>http://wpcanyon.com/tutorials/creating-a-contact-page-from-scratch-in-wordpress/comment-page-1/#comment-3998</link>
		<dc:creator>Daniel Suarez</dc:creator>
		<pubDate>Sat, 02 Oct 2010 15:06:34 +0000</pubDate>
		<guid isPermaLink="false">http://wpcanyon.com/?p=561#comment-3998</guid>
		<description>Thank you so much, for this tutorial! I have a stupid question, where do you put the Jquery, javascript code? Thanks in advance</description>
		<content:encoded><![CDATA[<p>Thank you so much, for this tutorial! I have a stupid question, where do you put the Jquery, javascript code? Thanks in advance</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Extension:103</title>
		<link>http://wpcanyon.com/tutorials/creating-a-contact-page-from-scratch-in-wordpress/comment-page-1/#comment-3624</link>
		<dc:creator>Extension:103</dc:creator>
		<pubDate>Mon, 13 Sep 2010 20:38:52 +0000</pubDate>
		<guid isPermaLink="false">http://wpcanyon.com/?p=561#comment-3624</guid>
		<description>thats the file with the contact form in.</description>
		<content:encoded><![CDATA[<p>thats the file with the contact form in.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Boba</title>
		<link>http://wpcanyon.com/tutorials/creating-a-contact-page-from-scratch-in-wordpress/comment-page-1/#comment-3601</link>
		<dc:creator>Boba</dc:creator>
		<pubDate>Sun, 12 Sep 2010 22:54:24 +0000</pubDate>
		<guid isPermaLink="false">http://wpcanyon.com/?p=561#comment-3601</guid>
		<description>The error is in contact-form.php, which file is that?</description>
		<content:encoded><![CDATA[<p>The error is in contact-form.php, which file is that?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Extension:103</title>
		<link>http://wpcanyon.com/tutorials/creating-a-contact-page-from-scratch-in-wordpress/comment-page-1/#comment-3599</link>
		<dc:creator>Extension:103</dc:creator>
		<pubDate>Sun, 12 Sep 2010 21:52:06 +0000</pubDate>
		<guid isPermaLink="false">http://wpcanyon.com/?p=561#comment-3599</guid>
		<description>sorry spoke too soon. still debugging my theme and came across this issue.

PHP Warning:  Cannot modify header information - headers already sent by (output started at /Applications/MAMP/htdocs/wp-content/themes/ext103wp3.2/contact-form.php:2) in /Applications/MAMP/htdocs/wp-includes/functions.php on line 3071

can you help?</description>
		<content:encoded><![CDATA[<p>sorry spoke too soon. still debugging my theme and came across this issue.</p>
<p>PHP Warning:  Cannot modify header information &#8211; headers already sent by (output started at /Applications/MAMP/htdocs/wp-content/themes/ext103wp3.2/contact-form.php:2) in /Applications/MAMP/htdocs/wp-includes/functions.php on line 3071</p>
<p>can you help?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Boba</title>
		<link>http://wpcanyon.com/tutorials/creating-a-contact-page-from-scratch-in-wordpress/comment-page-1/#comment-3597</link>
		<dc:creator>Boba</dc:creator>
		<pubDate>Sun, 12 Sep 2010 21:22:03 +0000</pubDate>
		<guid isPermaLink="false">http://wpcanyon.com/?p=561#comment-3597</guid>
		<description>You&#039;re welcome :)</description>
		<content:encoded><![CDATA[<p>You&#8217;re welcome <img src='http://wpcanyon.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
</channel>
</rss>

