<?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 for nFriedly Web Dev Tech Blog</title>
	<atom:link href="http://nfriedly.com/techblog/comments/feed/" rel="self" type="application/rss+xml" />
	<link>http://nfriedly.com/techblog</link>
	<description>Expert Advice on Website Development, Javascript, Ajax, and Security</description>
	<lastBuildDate>Thu, 22 Jul 2010 16:58:06 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
	<item>
		<title>Comment on How to use XSLT to style an RSS feed by nFriedly</title>
		<link>http://nfriedly.com/techblog/2009/06/how-to-use-xslt-to-style-an-rss-feed/comment-page-1/#comment-2277</link>
		<dc:creator>nFriedly</dc:creator>
		<pubDate>Thu, 22 Jul 2010 16:58:06 +0000</pubDate>
		<guid isPermaLink="false">http://nfriedly.com/techblog/?p=191#comment-2277</guid>
		<description>Hi Ian, 

It&#039;s been about a year since I&#039;ve done my research, but at the time there was no way to make Opera behave properly with RSS + XSL. 

I just took a quick glance at Opera 10.60, and it seems that nothing has changed since then.</description>
		<content:encoded><![CDATA[<p>Hi Ian, </p>
<p>It&#8217;s been about a year since I&#8217;ve done my research, but at the time there was no way to make Opera behave properly with RSS + XSL. </p>
<p>I just took a quick glance at Opera 10.60, and it seems that nothing has changed since then.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on How to use XSLT to style an RSS feed by Ian</title>
		<link>http://nfriedly.com/techblog/2009/06/how-to-use-xslt-to-style-an-rss-feed/comment-page-1/#comment-2276</link>
		<dc:creator>Ian</dc:creator>
		<pubDate>Thu, 22 Jul 2010 16:08:35 +0000</pubDate>
		<guid isPermaLink="false">http://nfriedly.com/techblog/?p=191#comment-2276</guid>
		<description>Great article. Is there a way to fool Opera into using a custom xsl.</description>
		<content:encoded><![CDATA[<p>Great article. Is there a way to fool Opera into using a custom xsl.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on How to build a spam-free contact form without captchas by Alicia</title>
		<link>http://nfriedly.com/techblog/2009/06/how-to-build-a-spam-free-contact-forms-without-captchas/comment-page-1/#comment-2156</link>
		<dc:creator>Alicia</dc:creator>
		<pubDate>Wed, 10 Mar 2010 01:56:51 +0000</pubDate>
		<guid isPermaLink="false">http://nfriedly.com/techblog/?p=23#comment-2156</guid>
		<description>Yes, checking for extra fields injection is mandatory.

One migh also want the Name to be added there too ( not just the email ), and the subject of the email can be something like &#039;Contact Form &#039; . $POST[subject] ..

I use formchamp.com to build and generate forms that send emails, and they also have a captcha less version that uses a hidden field to catch spam. Just as per suggestion of this blog entry</description>
		<content:encoded><![CDATA[<p>Yes, checking for extra fields injection is mandatory.</p>
<p>One migh also want the Name to be added there too ( not just the email ), and the subject of the email can be something like &#8216;Contact Form &#8216; . $POST[subject] ..</p>
<p>I use formchamp.com to build and generate forms that send emails, and they also have a captcha less version that uses a hidden field to catch spam. Just as per suggestion of this blog entry</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on How to build a spam-free contact form without captchas by nFriedly</title>
		<link>http://nfriedly.com/techblog/2009/06/how-to-build-a-spam-free-contact-forms-without-captchas/comment-page-1/#comment-2113</link>
		<dc:creator>nFriedly</dc:creator>
		<pubDate>Mon, 01 Mar 2010 16:12:08 +0000</pubDate>
		<guid isPermaLink="false">http://nfriedly.com/techblog/?p=23#comment-2113</guid>
		<description>Hi Naz, you can do that by changing the line

[php]
mail( &#039;you@yoursite.com&#039;, &#039;Contact Form&#039;, print_r($_POST,true) );
[/php]

to this:

[php]
$youremail = &#039;you@yoursite.com&#039;;

$body = &quot;This is the form that was just submitted:
Name:  $_POST[name]
E-Mail: $_POST[email]
Message: $_POST[message]&quot;;

if( $_POST[&#039;email&#039;] &amp;&amp; !preg_match( &quot;/[\r\n]/&quot;, $_POST[&#039;email&#039;]) ) {
  $headers = &quot;From: $_POST[email]&quot;;
} else {
  $headers = &quot;From: $youremail&quot;;
}

mail($youremail, &#039;Contact Form&#039;, $body, $headers );
[/php]

The preg_match() is there to make sure spammers can&#039;t abuse your server by injecting extra fields (such as CC and BCC) into the header. Take a look at http://www.thesitewizard.com/php/protect-script-from-email-injection.shtml for more info.</description>
		<content:encoded><![CDATA[<p>Hi Naz, you can do that by changing the line</p>
<pre class="brush: php;">
mail( 'you@yoursite.com', 'Contact Form', print_r($_POST,true) );
</pre>
<p>to this:</p>
<pre class="brush: php;">
$youremail = 'you@yoursite.com';

$body = &quot;This is the form that was just submitted:
Name:  $_POST[name]
E-Mail: $_POST[email]
Message: $_POST[message]&quot;;

if( $_POST['email'] &amp;&amp; !preg_match( &quot;/[\r\n]/&quot;, $_POST['email']) ) {
  $headers = &quot;From: $_POST[email]&quot;;
} else {
  $headers = &quot;From: $youremail&quot;;
}

mail($youremail, 'Contact Form', $body, $headers );
</pre>
<p>The preg_match() is there to make sure spammers can&#8217;t abuse your server by injecting extra fields (such as CC and BCC) into the header. Take a look at <a href="http://www.thesitewizard.com/php/protect-script-from-email-injection.shtml" rel="nofollow">http://www.thesitewizard.com/php/protect-script-from-email-injection.shtml</a> for more info.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on How to build a spam-free contact form without captchas by Naz</title>
		<link>http://nfriedly.com/techblog/2009/06/how-to-build-a-spam-free-contact-forms-without-captchas/comment-page-1/#comment-2109</link>
		<dc:creator>Naz</dc:creator>
		<pubDate>Sun, 28 Feb 2010 10:32:57 +0000</pubDate>
		<guid isPermaLink="false">http://nfriedly.com/techblog/?p=23#comment-2109</guid>
		<description>Hey, I tried this code and it works fine. But when I get the email. It comes with Array{} codes and even it shows the submit. Is there a way I can make it much better? Also it comes from my mail server which is an ugly address lol.</description>
		<content:encoded><![CDATA[<p>Hey, I tried this code and it works fine. But when I get the email. It comes with Array{} codes and even it shows the submit. Is there a way I can make it much better? Also it comes from my mail server which is an ugly address lol.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Advanced Javascript: Logical Operators and truthy / falsy by nFriedly</title>
		<link>http://nfriedly.com/techblog/2009/06/advanced-javascript-operators-and-truthy-falsy/comment-page-1/#comment-2101</link>
		<dc:creator>nFriedly</dc:creator>
		<pubDate>Thu, 25 Feb 2010 15:58:05 +0000</pubDate>
		<guid isPermaLink="false">http://nfriedly.com/techblog/?p=46#comment-2101</guid>
		<description>Because JavaScript is weird...

alert([] == false) // true

alert([] == true) // false

alert( ( [] ) ? &#039;truthy&#039; : &#039;falsy&#039; ) // truthy

I&#039;ll append the original article though, thanks for pointing it out!</description>
		<content:encoded><![CDATA[<p>Because JavaScript is weird&#8230;</p>
<p>alert([] == false) // true</p>
<p>alert([] == true) // false</p>
<p>alert( ( [] ) ? &#8216;truthy&#8217; : &#8216;falsy&#8217; ) // truthy</p>
<p>I&#8217;ll append the original article though, thanks for pointing it out!</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Advanced Javascript: Logical Operators and truthy / falsy by Andy Tjin</title>
		<link>http://nfriedly.com/techblog/2009/06/advanced-javascript-operators-and-truthy-falsy/comment-page-1/#comment-2100</link>
		<dc:creator>Andy Tjin</dc:creator>
		<pubDate>Thu, 25 Feb 2010 15:25:39 +0000</pubDate>
		<guid isPermaLink="false">http://nfriedly.com/techblog/?p=46#comment-2100</guid>
		<description>So you say [] is truthy. But then why is the following true?
[] == false</description>
		<content:encoded><![CDATA[<p>So you say [] is truthy. But then why is the following true?<br />
[] == false</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on How to use XSLT to style an RSS feed by nFriedly</title>
		<link>http://nfriedly.com/techblog/2009/06/how-to-use-xslt-to-style-an-rss-feed/comment-page-1/#comment-2035</link>
		<dc:creator>nFriedly</dc:creator>
		<pubDate>Tue, 09 Feb 2010 16:30:41 +0000</pubDate>
		<guid isPermaLink="false">http://nfriedly.com/techblog/?p=191#comment-2035</guid>
		<description>Good point Alejandro - thanks!</description>
		<content:encoded><![CDATA[<p>Good point Alejandro &#8211; thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on How to use XSLT to style an RSS feed by Alejandro</title>
		<link>http://nfriedly.com/techblog/2009/06/how-to-use-xslt-to-style-an-rss-feed/comment-page-1/#comment-2031</link>
		<dc:creator>Alejandro</dc:creator>
		<pubDate>Tue, 02 Feb 2010 17:02:29 +0000</pubDate>
		<guid isPermaLink="false">http://nfriedly.com/techblog/?p=191#comment-2031</guid>
		<description>Another option is to declare a prefix for the namespace and use it in the root element. This will break the &quot;&lt;feed&quot; string that is sought by the browser. You can also keep the default namespace to avoid altering the rest of the document. Only the Opera browser is not fooled by this method. This costs much less than 512 bytes in comments.</description>
		<content:encoded><![CDATA[<p>Another option is to declare a prefix for the namespace and use it in the root element. This will break the &#8220;&lt;feed&quot; string that is sought by the browser. You can also keep the default namespace to avoid altering the rest of the document. Only the Opera browser is not fooled by this method. This costs much less than 512 bytes in comments.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on How AJAX Security and Twitter callbacks work by mark landmann</title>
		<link>http://nfriedly.com/techblog/2009/06/javascript-security-ajax-json-and-twitter-callbacks/comment-page-1/#comment-2028</link>
		<dc:creator>mark landmann</dc:creator>
		<pubDate>Sun, 17 Jan 2010 09:35:07 +0000</pubDate>
		<guid isPermaLink="false">http://nfriedly.com/techblog/2009/06/javascript-security-ajax-json-and-twitter-callbacks/#comment-2028</guid>
		<description>if you are interested in a small little twitter like project, please send me your contact information to the above address.</description>
		<content:encoded><![CDATA[<p>if you are interested in a small little twitter like project, please send me your contact information to the above address.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
