<?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>Surya's blog &#187; spam</title>
	<atom:link href="http://www.hakc.net/tag/spam/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.hakc.net</link>
	<description></description>
	<lastBuildDate>Sat, 25 Jul 2009 11:39:18 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>AJAX Contact Form with captcha</title>
		<link>http://www.hakc.net/2008/04/06/ajax-contact-form-with-captcha/</link>
		<comments>http://www.hakc.net/2008/04/06/ajax-contact-form-with-captcha/#comments</comments>
		<pubDate>Sun, 06 Apr 2008 21:18:04 +0000</pubDate>
		<dc:creator>Surya</dc:creator>
				<category><![CDATA[AJAX]]></category>
		<category><![CDATA[Scripts]]></category>
		<category><![CDATA[ajax]]></category>
		<category><![CDATA[captcha]]></category>
		<category><![CDATA[contact]]></category>
		<category><![CDATA[spam]]></category>

		<guid isPermaLink="false">http://www.hakc.net/?p=26</guid>
		<description><![CDATA[Here it is, an AJAX&#8217;d contact form with a captcha. I had an idea to code this about a week ago and thought would be a tough job to do but it wasn&#8217;t that tough to code when I started doing it. The only place where I had to spend a lot of time was, [...]]]></description>
			<content:encoded><![CDATA[<p>Here it is, an AJAX&#8217;d contact form with a captcha. I had an idea to code this about a week ago and thought would be a tough job to do but it wasn&#8217;t that tough to code when I started doing it. The only place where I had to spend a lot of time was, pondering how to pass the value from the &#8216;textarea&#8217; to the PHP preserving the line breaks. After googling for about an hour and reading different articles I finally got what was required, I just had to escape(): the variable before sending it to the PHP script.</p>
<p>On a positive note, I didn&#8217;t really have any problem with running this script on IE (I usually have to break my head over this matter). To prelude its features, I guess it does everything you&#8217;d normally except a contact form to do. It sanitizes all the variables, checks for the Email structure and disabled the submit button once the email is sent to prevent mass emails. I would like to thank SecondVersion and Psyrens for the PHP backend &amp; ajax captcha respectively. As usual I&#8217;m lazy to provide a detailed documentation about it and would *make sure* that I write one in the future. But the whole script isn&#8217;t obfuscated at all, you&#8217;d just have to edit some constants and woo! it&#8217;s done.</p>
<p>I&#8217;m currently working on integrating this script as a wordpress plugin. Please let me know any bugs/commments/feedback by commenting below or contacting me. Show-off your own modified version of this script here <img src='http://www.hakc.net/wp-includes/images/smilies/icon_razz.gif' alt=':P' class='wp-smiley' /> </p>
<p>Script Demo : ~Snipped temporarily~<a href="http://hakc.net/ajax-contact-form-captcha-demo/" target="_blank"></a></p>
<p>Script Download : <a href="http://hakc.net/ajax-contact-form-captcha-demo/ajax-contact-form-hakc.net.zip" target="_blank">http://hakc.net/&#8230;./&#8230;.zip</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.hakc.net/2008/04/06/ajax-contact-form-with-captcha/feed/</wfw:commentRss>
		<slash:comments>27</slash:comments>
		</item>
	</channel>
</rss>
