FORUMS


The Form Tools forums are no longer active, but the old posts have been archived here. Please see the Help page on how to get help / report issues.

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Silver's CAPTCHA Implementation
#1
Silver's CAPTCHA implementation for FT 1.x also works for FT 2.

Silver's tutorial can be found here:
http://ft1.formtools.org/forums/index.ph...752.0.html

I have approximately 125 forms on four different machines posting to FT 1.5.1, and I didn't want to modify every single form, so I tried if I could modify process.php. It seems to work fine. The letsgo() function is a little different:

Code:
function letsgo()
{
    if (empty($_POST)){
        $page_vars = array("message_type" => "error", "message" => $LANG["processing_no_post_vars"]);
        ft_display_page("../../global/smarty/messages.tpl", $page_vars);
        exit;
        }
    elseif (empty($_POST['form_tools_form_id'])){
        $page_vars = array("message_type" => "error", "message" => $LANG["processing_no_form_id"]);
        ft_display_page("../../global/smarty/messages.tpl", $page_vars);
        exit;
        }
    elseif (isset($_POST['form_tools_initialize_form'])){
        ft_initialize_form($_POST);
        }
    else{
        ft_process_form($_POST);
        }
}
Reply
#2
Nice, thanks for posting this!

- Ben
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)