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
Check for no sessions and redirect if none on Thank You page?
#2
Not quite the same thing, but it might give you an idea? I'm using this to check for the presence of form_id (cheers Ben!).

Code:
    // this is probably worth doing, just in case! It makes double-sure that the form ID
    // is available in the page. Without it, nothing would work. This could redirect to a different page
    if (empty($form_id) || !is_numeric($form_id))
    {
      // header("location: noformid.php");
      echo "whatever";
        // exit;
    }


Presumably you could test for a value that should have been completed and do something similar?

(Mar 19th, 2010, 7:39 AM)Jaace Wrote: I was wondering if there is a way to add the "no_sessions_url" parameter to the Thank You page on a two page form (non-Paypal).

I don't want users to be able to access pages when they aren't supposed to. I tired adding:
Code:
$params = array("no_sessions_url" => "/page-to-redirect-to");

between the call to ft_api_init_form_page and ft_api_clear_form_sessions on my thank you page...but no luck.
Reply


Messages In This Thread
RE: Check for no sessions and redirect if none on Thank You page? - by martin_undefined - Mar 21st, 2010, 3:35 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)