<?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: Contact form with Lightbox and jQuery</title>
	<atom:link href="http://www.web-development-blog.com/archives/jquery-contact-form-for-your-website/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.web-development-blog.com/archives/jquery-contact-form-for-your-website/</link>
	<description>Read about Website Development, Online Marketing and Web Hosting</description>
	<lastBuildDate>Wed, 08 Feb 2012 09:30:54 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
	<item>
		<title>By: Olaf</title>
		<link>http://www.web-development-blog.com/archives/jquery-contact-form-for-your-website/#comment-127059</link>
		<dc:creator>Olaf</dc:creator>
		<pubDate>Sat, 16 Apr 2011 05:13:01 +0000</pubDate>
		<guid isPermaLink="false">http://www.web-development-blog.com/?p=839#comment-127059</guid>
		<description>Kat, 
well done you found the problem. Line ends on windows systems are different from them on Linux systems.
Thanks for sharing your solution!</description>
		<content:encoded><![CDATA[<p>Kat,<br />
well done you found the problem. Line ends on windows systems are different from them on Linux systems.<br />
Thanks for sharing your solution!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kat</title>
		<link>http://www.web-development-blog.com/archives/jquery-contact-form-for-your-website/#comment-127058</link>
		<dc:creator>Kat</dc:creator>
		<pubDate>Sat, 16 Apr 2011 02:29:36 +0000</pubDate>
		<guid isPermaLink="false">http://www.web-development-blog.com/?p=839#comment-127058</guid>
		<description>I did finally get the code to work for me.  The issue was with these two lines:
&lt;code&gt;
$response = explode(PHP_EOL, $data);
if ($response[0] == &#039;true&#039;) {
&lt;/code&gt;
For some reason, the explode function was not recognizing the first &quot;PHP_EOL&quot;, so it was combining the first and second array values, making it &quot;true\nsuccess&quot; for a correct response.  Because of this, the next if statement was always false, making errmessage = &quot;Can&#039;t validate the Captcha image.&quot;  I changed the first line to this:
&lt;code&gt;
$response = explode(&quot;\n&quot;, $data);
&lt;/code&gt;
and it worked.  Thanks to Olaf for all his help with this.</description>
		<content:encoded><![CDATA[<p>I did finally get the code to work for me.  The issue was with these two lines:<br />
<code><br />
$response = explode(PHP_EOL, $data);<br />
if ($response[0] == 'true') {<br />
</code><br />
For some reason, the explode function was not recognizing the first &#8220;PHP_EOL&#8221;, so it was combining the first and second array values, making it &#8220;true\nsuccess&#8221; for a correct response.  Because of this, the next if statement was always false, making errmessage = &#8220;Can&#8217;t validate the Captcha image.&#8221;  I changed the first line to this:<br />
<code><br />
$response = explode("\n", $data);<br />
</code><br />
and it worked.  Thanks to Olaf for all his help with this.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Olaf</title>
		<link>http://www.web-development-blog.com/archives/jquery-contact-form-for-your-website/#comment-127055</link>
		<dc:creator>Olaf</dc:creator>
		<pubDate>Fri, 15 Apr 2011 08:22:27 +0000</pubDate>
		<guid isPermaLink="false">http://www.web-development-blog.com/?p=839#comment-127055</guid>
		<description>Hello Kat,

please send me your php code by email

Olaf</description>
		<content:encoded><![CDATA[<p>Hello Kat,</p>
<p>please send me your php code by email</p>
<p>Olaf</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kat</title>
		<link>http://www.web-development-blog.com/archives/jquery-contact-form-for-your-website/#comment-127054</link>
		<dc:creator>Kat</dc:creator>
		<pubDate>Fri, 15 Apr 2011 02:43:50 +0000</pubDate>
		<guid isPermaLink="false">http://www.web-development-blog.com/?p=839#comment-127054</guid>
		<description>I did what you suggested, verified the reCaptcha keys, and replaced the code, all with the same results.  Changing the code inside email.php didn&#039;t do anything, because my .ajax function is coming back with an error (parsererror), so the response from email.php is bad.  I added this code:

&lt;code&gt;
error: function(test, status) {
	alert(&quot;test: &quot; + test + &quot; &#124; status: &quot; + status);
		}
&lt;/code&gt;

to my js file, and that&#039;s how I know I&#039;m getting an error, &#039;status&#039; comes back as &#039;parsererror.&#039;</description>
		<content:encoded><![CDATA[<p>I did what you suggested, verified the reCaptcha keys, and replaced the code, all with the same results.  Changing the code inside email.php didn&#8217;t do anything, because my .ajax function is coming back with an error (parsererror), so the response from email.php is bad.  I added this code:</p>
<p><code><br />
error: function(test, status) {<br />
	alert("test: " + test + " | status: " + status);<br />
		}<br />
</code></p>
<p>to my js file, and that&#8217;s how I know I&#8217;m getting an error, &#8216;status&#8217; comes back as &#8216;parsererror.&#8217;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Olaf</title>
		<link>http://www.web-development-blog.com/archives/jquery-contact-form-for-your-website/#comment-127047</link>
		<dc:creator>Olaf</dc:creator>
		<pubDate>Thu, 14 Apr 2011 07:33:07 +0000</pubDate>
		<guid isPermaLink="false">http://www.web-development-blog.com/?p=839#comment-127047</guid>
		<description>change this code inside the php script

&lt;code&gt;
if ($response[1] == &#039;incorrect-captcha-sol&#039;) {
				$resp[&#039;errmessage&#039;] = &#039;The entered text from the Captcha image is wrong.&#039;;
			} else {
				$resp[&#039;errmessage&#039;] = &#039;Can&#039;t validate the Captcha image.&#039;;
			}

&lt;/code&gt;

to this code

&lt;code&gt;
if ($response[1] == &#039;incorrect-captcha-sol&#039;) {
				$resp[&#039;errmessage&#039;] = &#039;The entered text from the Captcha image is wrong.&#039;;
			} else {
				$resp[&#039;errmessage&#039;] = &#039;Can&#039;t validate the Captcha image. Error code: &#039;.$response[1];
			}

&lt;/code&gt;

What kind of error code do you get?</description>
		<content:encoded><![CDATA[<p>change this code inside the php script</p>
<p><code><br />
if ($response[1] == 'incorrect-captcha-sol') {<br />
				$resp['errmessage'] = 'The entered text from the Captcha image is wrong.';<br />
			} else {<br />
				$resp['errmessage'] = 'Can't validate the Captcha image.';<br />
			}</p>
<p></code></p>
<p>to this code</p>
<p><code><br />
if ($response[1] == 'incorrect-captcha-sol') {<br />
				$resp['errmessage'] = 'The entered text from the Captcha image is wrong.';<br />
			} else {<br />
				$resp['errmessage'] = 'Can't validate the Captcha image. Error code: '.$response[1];<br />
			}</p>
<p></code></p>
<p>What kind of error code do you get?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Olaf</title>
		<link>http://www.web-development-blog.com/archives/jquery-contact-form-for-your-website/#comment-127046</link>
		<dc:creator>Olaf</dc:creator>
		<pubDate>Thu, 14 Apr 2011 07:28:04 +0000</pubDate>
		<guid isPermaLink="false">http://www.web-development-blog.com/?p=839#comment-127046</guid>
		<description>Hello Kat,

do you double checked all settings from reCaptcha? Compare both ID&#039;s, the website&#039;s domain/address you have entered for this IDs.</description>
		<content:encoded><![CDATA[<p>Hello Kat,</p>
<p>do you double checked all settings from reCaptcha? Compare both ID&#8217;s, the website&#8217;s domain/address you have entered for this IDs.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Olaf</title>
		<link>http://www.web-development-blog.com/archives/jquery-contact-form-for-your-website/#comment-127045</link>
		<dc:creator>Olaf</dc:creator>
		<pubDate>Thu, 14 Apr 2011 07:26:27 +0000</pubDate>
		<guid isPermaLink="false">http://www.web-development-blog.com/?p=839#comment-127045</guid>
		<description>Hello Kat,

$_SERVER[&quot;REMOTE_ADDR&quot;] is a server variable which holds the IP address from each visitor, you don&#039;t need to change this.</description>
		<content:encoded><![CDATA[<p>Hello Kat,</p>
<p>$_SERVER["REMOTE_ADDR"] is a server variable which holds the IP address from each visitor, you don&#8217;t need to change this.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kat</title>
		<link>http://www.web-development-blog.com/archives/jquery-contact-form-for-your-website/#comment-127044</link>
		<dc:creator>Kat</dc:creator>
		<pubDate>Thu, 14 Apr 2011 03:02:32 +0000</pubDate>
		<guid isPermaLink="false">http://www.web-development-blog.com/?p=839#comment-127044</guid>
		<description>Forgot to mention one thing, the status comes back as &#039;parsererror&#039;, and the error message is &#039;undefined&#039;</description>
		<content:encoded><![CDATA[<p>Forgot to mention one thing, the status comes back as &#8216;parsererror&#8217;, and the error message is &#8216;undefined&#8217;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kat</title>
		<link>http://www.web-development-blog.com/archives/jquery-contact-form-for-your-website/#comment-127043</link>
		<dc:creator>Kat</dc:creator>
		<pubDate>Thu, 14 Apr 2011 02:59:33 +0000</pubDate>
		<guid isPermaLink="false">http://www.web-development-blog.com/?p=839#comment-127043</guid>
		<description>I stripped out the reCaptcha code, and sure enough, the code works with no problems.  Any suggestions on where to go from here to get the Captcha to work?  Thanks in advance!</description>
		<content:encoded><![CDATA[<p>I stripped out the reCaptcha code, and sure enough, the code works with no problems.  Any suggestions on where to go from here to get the Captcha to work?  Thanks in advance!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kat</title>
		<link>http://www.web-development-blog.com/archives/jquery-contact-form-for-your-website/#comment-127042</link>
		<dc:creator>Kat</dc:creator>
		<pubDate>Thu, 14 Apr 2011 01:32:26 +0000</pubDate>
		<guid isPermaLink="false">http://www.web-development-blog.com/?p=839#comment-127042</guid>
		<description>Hi Olaf -

I noticed something I wanted to ask you about before I stripped out the reCaptcha code.  There is a parameter, $_SERVER[&quot;REMOTE_ADDR&quot;].  I still have this code as you have displayed it here, and looking at the reCaptcha help, this is supposed to be the user&#039;s address.  Is this the case? Should I change this code to the user&#039;s IP address, and if so, how do I do this?  Thanks!</description>
		<content:encoded><![CDATA[<p>Hi Olaf -</p>
<p>I noticed something I wanted to ask you about before I stripped out the reCaptcha code.  There is a parameter, $_SERVER["REMOTE_ADDR"].  I still have this code as you have displayed it here, and looking at the reCaptcha help, this is supposed to be the user&#8217;s address.  Is this the case? Should I change this code to the user&#8217;s IP address, and if so, how do I do this?  Thanks!</p>
]]></content:encoded>
	</item>
</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Database Caching 26/35 queries in 0.028 seconds using disk: basic
Object Caching 476/476 objects using disk: basic
Content Delivery Network via cdn.web-development-blog.com

Served from: www.web-development-blog.com @ 2012-02-08 10:32:43 -->
