[pmwiki-users] Form content erased by new captcha

Hans design5 at softflow.co.uk
Sat Jul 12 04:45:28 CDT 2008

Friday, July 11, 2008, 10:47:24 PM, Marcus wrote:

>> this should do the trick:
>> below  (:input form "{$PageUrl}":)
>> add (:input default request=1:)

> Thanks, it works on its own, but not with captcha. Any ideas how to
> make captcha keep all input values except a wrong captcha entry?

(:input default request=1:) will set default values in your form
from submitted previous input (the php $_REQUEST variable).
Captcha is not interfering with that, in fact the previous captcha
number will appear in the captcha field as default value (which would
need to be changed, since the required Captcha value is now

But your form sets default values for the text fields with
value="...", so any input in these fields is lost, as the form will
reset with the values specified with the value= parameter.
If the page variable you use is empty, then no value is shown as
default. For (:input default request=1:) to work and previous entries
to be shown again you should not set any value= parameters.


More information about the pmwiki-users mailing list