Apr 17th, 2014, 12:14 AM
Hi, I'm new here and first want to say that formtools solved a lot of my problems with forms on my website that need to ad data to a database.
On one of my sites i use a external form with the api to let people register before they can download a file from another page. I'm using the thank you page redirect for that. and that is working fine right now.
The problem (and question) is that i only want people who registered to be able to reach the thank you page....
is there a way to forward them to a thankyou page that is located in password protected directory?
this is the code in my form and obviously i would like to password protect directory "74vzx367aw"
<?php
require_once("../formtools/global/api/api.php");
$fields = ft_api_init_form_page(1);
$params = array(
"submit_button" => "send",
"next_page" => "74vzx367aw/infomappagina.php",
"form_data" => $_POST,
"finalize" => true
);
ft_api_process_form($params);
?>
Perhaps i'm trying to do this in the wrong way so any ideas to do it different than this are very welcome!!
On one of my sites i use a external form with the api to let people register before they can download a file from another page. I'm using the thank you page redirect for that. and that is working fine right now.
The problem (and question) is that i only want people who registered to be able to reach the thank you page....
is there a way to forward them to a thankyou page that is located in password protected directory?
this is the code in my form and obviously i would like to password protect directory "74vzx367aw"
<?php
require_once("../formtools/global/api/api.php");
$fields = ft_api_init_form_page(1);
$params = array(
"submit_button" => "send",
"next_page" => "74vzx367aw/infomappagina.php",
"form_data" => $_POST,
"finalize" => true
);
ft_api_process_form($params);
?>
Perhaps i'm trying to do this in the wrong way so any ideas to do it different than this are very welcome!!