<?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: Simple PHP math captcha image</title>
	<atom:link href="http://www.php-help.ro/php-tutorials/math-capcha-image-against-spam/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.php-help.ro/php-tutorials/math-capcha-image-against-spam/</link>
	<description>All about integrating PHP with JavaScript and Flash</description>
	<lastBuildDate>Tue, 31 Jan 2012 02:53:55 +0200</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Sofia</title>
		<link>http://www.php-help.ro/php-tutorials/math-capcha-image-against-spam/comment-page-2/#comment-4946</link>
		<dc:creator>Sofia</dc:creator>
		<pubDate>Tue, 24 May 2011 01:22:03 +0000</pubDate>
		<guid isPermaLink="false">http://www.php-help.ro/php-coding/math-capcha-image-against-spam/#comment-4946</guid>
		<description>Hi, im trying to have a math captcha in my registration form, but having trouble with setting it up in my form. sorry for the large code. If i change the value of $_POST[&#039;Submit&#039;] to something else like $_POST[&#039;Submit1&#039;] and then same for the math image captcha then it works, but i would like it to work as part of the form, makes sense? lol right now the form just posts the value and doesnt check for captcha values! if someone could help me out here that would be great! thank you.

 0) {//Email already been used
header( &quot;Location:Messages.php?msg=11&quot; );
exit();
}else{
$query=(&quot;Select * from user where uname=&#039;$name&#039;&quot;);
$result= mysql_query($query);
$num=mysql_num_rows($result);
if ($num &gt; 0) {//Username already exist
header( &quot;Location:Messages.php?msg=6&quot; );
exit();
}else{
//if username does not exist insert user details
$query=( &quot;INSERT INTO user (uname, pw,email,date_joined,ip,level) VALUES (&#039;$name&#039;,md5(&#039;$pw1&#039;),&#039;$email&#039;,NOW(),&#039;$ip&#039;,&#039;Normal&#039;)&quot;);
if (@mysql_query ($query)) {
header(&quot;location:login.php?reg=1&quot;);
exit;
}
}
}
mysql_close();
}
?&gt;


&lt;!-- InstanceBegin template=&quot;/Templates/Auth.dwt.php&quot; codeOutsideHTMLIsLocked=&quot;false&quot; --&gt;

&lt;!-- InstanceBeginEditable name=&quot;doctitle&quot; --&gt;
Registration
&lt;!-- InstanceEndEditable --&gt;

&lt;!-- InstanceBeginEditable name=&quot;head&quot; --&gt;
&lt;!-- InstanceEndEditable --&gt;


function reloadCaptcha()
{
document.getElementById(&#039;captcha&#039;).src = document.getElementById(&#039;captcha&#039;).src+ &#039;?&#039; +new Date();
}






&lt;!-- InstanceBeginEditable name=&quot;EditRegion4&quot; --&gt;New User Registration &lt;!-- InstanceEndEditable --&gt;


&lt;!-- InstanceBeginEditable name=&quot;EditRegion3&quot; --&gt;



Name



Email



Password



Confirm Password 









 



</description>
		<content:encoded><![CDATA[<p>Hi, im trying to have a math captcha in my registration form, but having trouble with setting it up in my form. sorry for the large code. If i change the value of $_POST['Submit'] to something else like $_POST['Submit1'] and then same for the math image captcha then it works, but i would like it to work as part of the form, makes sense? lol right now the form just posts the value and doesnt check for captcha values! if someone could help me out here that would be great! thank you.</p>
<p> 0) {//Email already been used<br />
header( &#8220;Location:Messages.php?msg=11&#8243; );<br />
exit();<br />
}else{<br />
$query=(&#8220;Select * from user where uname=&#8217;$name&#8217;&#8221;);<br />
$result= mysql_query($query);<br />
$num=mysql_num_rows($result);<br />
if ($num &gt; 0) {//Username already exist<br />
header( &#8220;Location:Messages.php?msg=6&#8243; );<br />
exit();<br />
}else{<br />
//if username does not exist insert user details<br />
$query=( &#8220;INSERT INTO user (uname, pw,email,date_joined,ip,level) VALUES (&#8216;$name&#8217;,md5(&#8216;$pw1&#8242;),&#8217;$email&#8217;,NOW(),&#8217;$ip&#8217;,'Normal&#8217;)&#8221;);<br />
if (@mysql_query ($query)) {<br />
header(&#8220;location:login.php?reg=1&#8243;);<br />
exit;<br />
}<br />
}<br />
}<br />
mysql_close();<br />
}<br />
?&gt;</p>
<p><!-- InstanceBegin template="/Templates/Auth.dwt.php" codeOutsideHTMLIsLocked="false" --></p>
<p><!-- InstanceBeginEditable name="doctitle" --><br />
Registration<br />
<!-- InstanceEndEditable --></p>
<p><!-- InstanceBeginEditable name="head" --><br />
<!-- InstanceEndEditable --></p>
<p>function reloadCaptcha()<br />
{<br />
document.getElementById(&#8216;captcha&#8217;).src = document.getElementById(&#8216;captcha&#8217;).src+ &#8216;?&#8217; +new Date();<br />
}</p>
<p><!-- InstanceBeginEditable name="EditRegion4" -->New User Registration <!-- InstanceEndEditable --></p>
<p><!-- InstanceBeginEditable name="EditRegion3" --></p>
<p>Name</p>
<p>Email</p>
<p>Password</p>
<p>Confirm Password</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Constantin Boiangiu</title>
		<link>http://www.php-help.ro/php-tutorials/math-capcha-image-against-spam/comment-page-1/#comment-4928</link>
		<dc:creator>Constantin Boiangiu</dc:creator>
		<pubDate>Tue, 17 May 2011 09:15:23 +0000</pubDate>
		<guid isPermaLink="false">http://www.php-help.ro/php-coding/math-capcha-image-against-spam/#comment-4928</guid>
		<description>Hi Chris,

Sorry for the delay, right now I&#039;m busy updating the scripts and plugins from php-help.ro. About your problem, you said you send the form to a different server. So probably there are problems with the session handling meaning the value of the captcha doesn&#039;t get stored correctly or something like it. Please contact me using the contact form from this blog if you want to talk in private about this problem of yours.</description>
		<content:encoded><![CDATA[<p>Hi Chris,</p>
<p>Sorry for the delay, right now I&#8217;m busy updating the scripts and plugins from php-help.ro. About your problem, you said you send the form to a different server. So probably there are problems with the session handling meaning the value of the captcha doesn&#8217;t get stored correctly or something like it. Please contact me using the contact form from this blog if you want to talk in private about this problem of yours.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Chris</title>
		<link>http://www.php-help.ro/php-tutorials/math-capcha-image-against-spam/comment-page-1/#comment-4913</link>
		<dc:creator>Chris</dc:creator>
		<pubDate>Fri, 13 May 2011 12:27:30 +0000</pubDate>
		<guid isPermaLink="false">http://www.php-help.ro/php-coding/math-capcha-image-against-spam/#comment-4913</guid>
		<description>Hello,

First of all, thank you for such an easy to implement script.

I am able to get the image.php file to show correctly..

However as mentioned before in here, I am having the issue where any input can be entered and sent.

I saw you posted to insert if( $_POST[&#039;user_input&#039;] != $_SESSION[&#039;captcha value&#039;] ) however, as a newbie to PHP, I am not quite sure where to put this and how to correctly insert an error value.

Thanks for your help!

Also I am looking to pay someone for some PHP work, if I sent you a file could you see if this would be something you would be interested in helping me with.  I would pay you a deposit...  Email me either way.

Thanks</description>
		<content:encoded><![CDATA[<p>Hello,</p>
<p>First of all, thank you for such an easy to implement script.</p>
<p>I am able to get the image.php file to show correctly..</p>
<p>However as mentioned before in here, I am having the issue where any input can be entered and sent.</p>
<p>I saw you posted to insert if( $_POST['user_input'] != $_SESSION['captcha value'] ) however, as a newbie to PHP, I am not quite sure where to put this and how to correctly insert an error value.</p>
<p>Thanks for your help!</p>
<p>Also I am looking to pay someone for some PHP work, if I sent you a file could you see if this would be something you would be interested in helping me with.  I would pay you a deposit&#8230;  Email me either way.</p>
<p>Thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Constantin Boiangiu</title>
		<link>http://www.php-help.ro/php-tutorials/math-capcha-image-against-spam/comment-page-1/#comment-4912</link>
		<dc:creator>Constantin Boiangiu</dc:creator>
		<pubDate>Thu, 12 May 2011 16:06:30 +0000</pubDate>
		<guid isPermaLink="false">http://www.php-help.ro/php-coding/math-capcha-image-against-spam/#comment-4912</guid>
		<description>There&#039;s probably something wrong when validating the data. It would help if you describe a little the process. How do you send the data to the remote server that validates the entries? And how do you get the response from that server? You simply submit the data to that address? Try to describe the process a little. If you want to keep it private, send me a message using the contact form (give a valid e-mail address) and I&#039;ll get back to you.</description>
		<content:encoded><![CDATA[<p>There&#8217;s probably something wrong when validating the data. It would help if you describe a little the process. How do you send the data to the remote server that validates the entries? And how do you get the response from that server? You simply submit the data to that address? Try to describe the process a little. If you want to keep it private, send me a message using the contact form (give a valid e-mail address) and I&#8217;ll get back to you.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Chr</title>
		<link>http://www.php-help.ro/php-tutorials/math-capcha-image-against-spam/comment-page-1/#comment-4910</link>
		<dc:creator>Chr</dc:creator>
		<pubDate>Wed, 11 May 2011 21:57:45 +0000</pubDate>
		<guid isPermaLink="false">http://www.php-help.ro/php-coding/math-capcha-image-against-spam/#comment-4910</guid>
		<description>How do I get this code to work on my site which is strictly HTML that uses a PHP file on a different server to process forms? It seems that adding the validation to the PHP file on the other server still allows any answers to go through. Any help will be much appreciated.</description>
		<content:encoded><![CDATA[<p>How do I get this code to work on my site which is strictly HTML that uses a PHP file on a different server to process forms? It seems that adding the validation to the PHP file on the other server still allows any answers to go through. Any help will be much appreciated.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Collection of Free Captcha&#8217;s for your Website &#8211; Script tutorials</title>
		<link>http://www.php-help.ro/php-tutorials/math-capcha-image-against-spam/comment-page-1/#comment-4554</link>
		<dc:creator>Collection of Free Captcha&#8217;s for your Website &#8211; Script tutorials</dc:creator>
		<pubDate>Mon, 14 Feb 2011 12:45:58 +0000</pubDate>
		<guid isPermaLink="false">http://www.php-help.ro/php-coding/math-capcha-image-against-spam/#comment-4554</guid>
		<description>[...] * math captcha 1, * math captcha 2 [...]</description>
		<content:encoded><![CDATA[<p>[...] * math captcha 1, * math captcha 2 [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: archon</title>
		<link>http://www.php-help.ro/php-tutorials/math-capcha-image-against-spam/comment-page-1/#comment-4513</link>
		<dc:creator>archon</dc:creator>
		<pubDate>Mon, 24 Jan 2011 08:20:59 +0000</pubDate>
		<guid isPermaLink="false">http://www.php-help.ro/php-coding/math-capcha-image-against-spam/#comment-4513</guid>
		<description>Just wanted to let you know that I got this working with a few tweaks to change the math operators into words. You can view a demo of it at http://nettopsites.com/math_captcha/</description>
		<content:encoded><![CDATA[<p>Just wanted to let you know that I got this working with a few tweaks to change the math operators into words. You can view a demo of it at <a href="http://nettopsites.com/math_captcha/" rel="nofollow">http://nettopsites.com/math_captcha/</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Constantin Boiangiu</title>
		<link>http://www.php-help.ro/php-tutorials/math-capcha-image-against-spam/comment-page-1/#comment-4454</link>
		<dc:creator>Constantin Boiangiu</dc:creator>
		<pubDate>Tue, 04 Jan 2011 18:09:23 +0000</pubDate>
		<guid isPermaLink="false">http://www.php-help.ro/php-coding/math-capcha-image-against-spam/#comment-4454</guid>
		<description>Try phpinfo() to see what&#039;s loaded and what not. It should help make an idea.</description>
		<content:encoded><![CDATA[<p>Try phpinfo() to see what&#8217;s loaded and what not. It should help make an idea.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: gordoenk</title>
		<link>http://www.php-help.ro/php-tutorials/math-capcha-image-against-spam/comment-page-1/#comment-4453</link>
		<dc:creator>gordoenk</dc:creator>
		<pubDate>Tue, 04 Jan 2011 17:09:30 +0000</pubDate>
		<guid isPermaLink="false">http://www.php-help.ro/php-coding/math-capcha-image-against-spam/#comment-4453</guid>
		<description>yes, its true. In the localhost printing the session shows the result wheres in my hosting is empty...
but I still cant find out why...</description>
		<content:encoded><![CDATA[<p>yes, its true. In the localhost printing the session shows the result wheres in my hosting is empty&#8230;<br />
but I still cant find out why&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Constantin Boiangiu</title>
		<link>http://www.php-help.ro/php-tutorials/math-capcha-image-against-spam/comment-page-1/#comment-4448</link>
		<dc:creator>Constantin Boiangiu</dc:creator>
		<pubDate>Tue, 04 Jan 2011 16:59:03 +0000</pubDate>
		<guid isPermaLink="false">http://www.php-help.ro/php-coding/math-capcha-image-against-spam/#comment-4448</guid>
		<description>Maybe there&#039;s a session problem. Check to see if the real result gets stored in session.</description>
		<content:encoded><![CDATA[<p>Maybe there&#8217;s a session problem. Check to see if the real result gets stored in session.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

