<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Jason Bates</title>
	<atom:link href="http://jasonbates.co.uk/blog/feed/" rel="self" type="application/rss+xml" />
	<link>http://jasonbates.co.uk/blog</link>
	<description>My blog, VB.net , PHP, Web dev</description>
	<lastBuildDate>Mon, 22 Jun 2009 01:15:19 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>PHP Contact form</title>
		<link>http://jasonbates.co.uk/blog/php-contact-form/</link>
		<comments>http://jasonbates.co.uk/blog/php-contact-form/#comments</comments>
		<pubDate>Mon, 22 Jun 2009 01:15:19 +0000</pubDate>
		<dc:creator>Jason</dc:creator>
				<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://jasonbates.co.uk/blog/?p=7</guid>
		<description><![CDATA[People, I know a PHP contact form is something that for newbie developers useally allways start trying to create as its pretty much essential on any website. I&#8217;ve written the code below to create one.
Here is a very easy way to create one in 3 simple steps:
HTML:
&#60;form action=&#8221;mailer.php&#8221; method=&#8221;post&#8221;&#62; &#60;input name=&#8221;name&#8221; size=&#8221;19&#8243; type=&#8221;text&#8221; /&#62;
&#60;input name=&#8221;email&#8221; [...]]]></description>
			<content:encoded><![CDATA[<p>People, I know a <a href="http://jasonbates.co.uk/blog/php-contact-form">PHP contact form</a> is something that for newbie developers useally allways start trying to create as its pretty much essential on any website. I&#8217;ve written the code below to create one.</p>
<p>Here is a very easy way to create one in 3 simple steps:</p>
<p><strong>HTML:</strong></p>
<blockquote><p>&lt;form action=&#8221;mailer.php&#8221; method=&#8221;post&#8221;&gt; &lt;input name=&#8221;name&#8221; size=&#8221;19&#8243; type=&#8221;text&#8221; /&gt;</p>
<p>&lt;input name=&#8221;email&#8221; size=&#8221;19&#8243; type=&#8221;text&#8221; /&gt;</p>
<p>&lt;textarea cols=&#8221;30&#8243; rows=&#8221;9&#8243; name=&#8221;message&#8221;&gt;&lt;/textarea&gt;</p>
<p>&lt;input name=&#8221;submit&#8221; type=&#8221;submit&#8221; value=&#8221;Submit&#8221; /&gt;<br />
&lt;/form&gt;</p></blockquote>
<p><strong>PHP:</strong></p>
<blockquote><p>
&lt;?php<br />
if(isset($_POST['submit'])) {</p>
<p>$to = &#8220;yourname@yoremailaddress.com&#8221;;<br />
$subject = &#8220;New Email From Your Website&#8217;s name&#8221;;<br />
$name_field = $_POST['name'];<br />
$email_field = $_POST['email'];<br />
$message = $_POST['message'];</p>
<p>$body = &#8220;From: $name_field\n E-Mail: $email_field\n Message:\n $message&#8221;;</p>
<p>echo &#8220;Data has been submitted to $to!&#8221;;<br />
mail($to, $subject, $body);</p>
<p>} else {</p>
<p>echo &#8220;blarg!&#8221;;</p>
<p>}<br />
?&gt;</p></blockquote>
<ol>
<li>Create 2 files in notepad/dreamweaver, 1 called form.php the other called mailer.php</li>
<li> Change the to: and subject: in the mailer.php file to your requrements</li>
<li>Upload it! Via FTP e.g CuteFTP, Filezilla, Cyberduck (Mac)</li>
</ol>
<p>Its as easy as 1,2,3!</p>
]]></content:encoded>
			<wfw:commentRss>http://jasonbates.co.uk/blog/php-contact-form/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Hello world!</title>
		<link>http://jasonbates.co.uk/blog/hello-world/</link>
		<comments>http://jasonbates.co.uk/blog/hello-world/#comments</comments>
		<pubDate>Mon, 22 Jun 2009 00:38:16 +0000</pubDate>
		<dc:creator>Jason</dc:creator>
				<category><![CDATA[General]]></category>

		<guid isPermaLink="false">http://jasonbates.co.uk/blog/?p=1</guid>
		<description><![CDATA[Welcome to my blog, if you think I&#8217;m going to be updating itevery day you can think again!
Just need a place to write stuff whenever I feel like it.
]]></description>
			<content:encoded><![CDATA[<p>Welcome to my blog, if you think I&#8217;m going to be updating itevery day you can think again!</p>
<p>Just need a place to write stuff whenever I feel like it.</p>
]]></content:encoded>
			<wfw:commentRss>http://jasonbates.co.uk/blog/hello-world/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
