<font size=2 face="sans-serif">Hi,</font>
<br>
<br><font size=2 face="sans-serif">I'm new to PmWiki and have virtually
no PHP experience.  I'm trying to implement the Captcha cookbook from
</font><a href=http://www.pmwiki.org/wiki/Cookbook/Captcha><font size=3 color=blue><u>http://www.pmwiki.org/wiki/Cookbook/Captcha</u></font></a><font size=3>
</font><font size=2 face="sans-serif">.</font>
<br>
<br><font size=2 face="sans-serif">I've uploaded the captcha.php file and
added the following lines to the end of the config.php file:</font>
<br>
<br><font size=2 face="Lucida Console">$EnablePostCaptchaRequired = 1;</font>
<br><font size=2 face="Lucida Console">if (CondAuth($pagename,'edit'))</font>
<br><font size=2 face="Lucida Console">   $EnablePostCaptchaRequired
= 0;</font>
<br><font size=2 face="Lucida Console">include_once("$FarmD/cookbook/captcha.php");</font>
<br>
<br><font size=2 face="sans-serif">and then edited the Site.EditForm file
to add the following code within the "text=" section to contain
the following:</font>
<br>
<br><font size=2 face="sans-serif">(:input form action={*$PageUrl} method=post:)</font>
<br><font size=2 face="sans-serif">(:input default request=1:)</font>
<br><font size=2 face="sans-serif">Enter value: {$Captcha} (:input captcha:)</font>
<br><font size=2 face="sans-serif">(:input submit:)</font>
<br><font size=2 face="sans-serif">(:input end:)</font>
<br>
<br><font size=2 face="sans-serif">(:if captcha:)</font>
<br><font size=2 face="sans-serif">%green%Captcha succeeded%%</font>
<br><font size=2 face="sans-serif">(:else:)</font>
<br><font size=2 face="sans-serif">%red%Captcha failed%%</font>
<br><font size=2 face="sans-serif">(:ifend:)</font>
<br>
<br>
<br><font size=2 face="sans-serif">But this completely stuffs up any editing
- I just end up with an almost blank page.  Would someone be kind
enough to show me what the contents of the Site.EditForm should look like
with the captcha included?</font>
<br>
<br>
<br><font size=2 face="sans-serif">Regards<br>
Ethann Castell<br>
</font>