I coded a basic captcha for my web.py form, here’s how:
First I made a function that generates an image and returns it + the code (yea it’s a mess).
Now here’s the corresponding web.py code:
To make the form look prettier, I also modified web.py to give the table rows an id and then used CSS to alter their padding etc.
Sorry, I didn’t take much time over this post. Hopefully, the code will get you started though, Dave.