|
 Seth Russell - 2006-01-19 00:41:59
The hn-captcha class displays a form; but what I want to allow, if the captcha is solved, is the server side processing of variables posted from another form. How do I do that?
I don't seem to be able to use the form statement from inside the class to enclose the variables that I need. I suppose that I could grab the variables from the other form with javascript and submit them with the catptcha form, but that seems very inflexible ... every time i want to use this class I would need to modify it.
Can anyone shed some light on this?
 Gord P - 2006-07-25 19:51:14 - In reply to message 1 from Seth Russell
I actually solved this problem.
I modified the hn_captcha.class.php file: in the function display_form, I commented out the form tag line, so display_form doesn't display an opening form tag. When the captcha form is displayed, its always displayed at a point in the HTML where there is an open form tag and the action points to the same page as originated the query. I also added an extra parameter to display_form, $extraheaders. This variable is displayed inside the 'new ID' form, and provides extra hidden fields to submit. The extra fields submitted via either method are available through $_POST or $_REQUEST.
Email me for the code.
HTH
 Eon - 2006-11-09 01:38:48 - In reply to message 2 from Gord P
HTH,
I'm interested in your solution to this problem, too. How can I get a copy of your code changes to the display_form function?
Ilsa
 Elena - 2006-11-23 17:10:55 - In reply to message 2 from Gord P
Hi, can i have the code of your solution to this problem? Thanks
 Rob Brandt - 2006-11-28 21:32:40 - In reply to message 2 from Gord P
I'd like a copy as well. Can you just post it in the forum so that the author can include it in the next version?
 Silvio Rainoldi - 2007-01-17 08:55:59 - In reply to message 5 from Rob Brandt
I'm too :P
 eduardo cortez - 2007-03-16 21:29:22 - In reply to message 4 from Elena
Hi, can i have the code of your solution to this problem? Thanks
 cherawat asavasitthikit - 2007-07-14 11:23:48 - In reply to message 2 from Gord P
HTH
Hi, Please send me the code of your solution to this problem? Thanks
 As Good As It Gets - 2007-09-28 12:18:38 - In reply to message 2 from Gord P
Could you please post the code here?
This way everyone can benefit from it and maybe you will receive some constructive criticism to make the class even better. ;-)
 C R - 2009-01-01 04:01:00 - In reply to message 2 from Gord P
HTH - I know it has been a while since the original post, but is there any way you could post the code for this? Or email it to me? Thank you very much. :)
|