Login   Register  
PHP Classes
elePHPant
Icontem

combining forms

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us

      HN CAPTCHA  >  All threads  >  combining forms  >  (Un) Subscribe thread alerts  
Subject:combining forms
Summary:How to integrate my form with the form displayed by the class ?
Messages:11
Author:Seth Russell
Date:2006-01-19 00:41:59
Update:2009-01-02 02:28:50
 
  1 - 10   11 - 11  

  1. combining forms   Reply  
Picture of Seth Russell
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?


  2. Re: combining forms   Reply  
Picture of Gord P
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

  3. Re: combining forms   Reply  
Picture of Eon
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

  4. Re: combining forms   Reply  
Picture of Elena
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

  5. Re: combining forms   Reply  
Picture of Rob Brandt
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?

  6. Re: combining forms   Reply  
Picture of Silvio Rainoldi
Silvio Rainoldi
2007-01-17 08:55:59 - In reply to message 5 from Rob Brandt
I'm too :P

  7. Re: combining forms   Reply  
Picture of eduardo cortez
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

  8. Re: combining forms   Reply  
Picture of cherawat asavasitthikit
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

  9. Re: combining forms   Reply  
Picture of As Good As It Gets
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. ;-)

  10. Re: combining forms   Reply  
Picture of C R
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. :)

 
  1 - 10   11 - 11