Jun 2nd, 2011, 10:38 AM
Hello Ben,
Hey Thanks for this awesome program you have here . .
I am setting up a form and and having issues passing on form field to thank you page . .
I went through all the tutes and read some of the threads here but it seems that my answers are not here . . . here are my code tags
In form head:
In form action:
This is in thank you head:
This is in my Div tag"
I installed all the modules and checked all the pass on variables but I get no code in my address bar and the thank you page is blank . .
Here is the form links
http://www.militarycuts.com/form.php
Thanks in advance
ciao
Hey Thanks for this awesome program you have here . .
I am setting up a form and and having issues passing on form field to thank you page . .
I went through all the tutes and read some of the threads here but it seems that my answers are not here . . . here are my code tags
In form head:
Code:
<?php
require_once("formtools/global/api/api.php");
$fields = ft_api_init_form_page(3);
$params = array(
"submit_button" => "mcs_order",
"next_page" => "confirmation.php",
"form_data" => $_POST,
"finalize" => true
);
ft_api_process_form($params);
?>
In form action:
Code:
<form action="<?php echo $_SERVER["PHP_SELF"]?>" method="POST">
This is in thank you head:
Code:
<?php
require_once("formtools/global/api/api.php");
$fields = ft_api_init_form_page();
ft_api_clear_form_sessions();
$submission_id = $fields["formtools_submission_id"];
$unique_key = $fields["unique_key"];
?>
This is in my Div tag"
Code:
<?php
if (isset($_GET["submission_id"]) && isset($_GET["unique_key"]))
{
$form_id = 3;
$view_id = 1;
$export_type_id = 1;
$submission_info = ft_api_get_submission($form_id, $_GET["submission_id"]);
// now confirm that the unique_key matches
if (isset($submission_info["unique_key"]) &&
$submission_info["unique_key"] == $_GET["unique_key"])
{
ft_api_show_submission($form_id, $view_id, $export_type_id, $_GET["submission_id"]);
}
}
?>
I installed all the modules and checked all the pass on variables but I get no code in my address bar and the thank you page is blank . .
Here is the form links
http://www.militarycuts.com/form.php
Thanks in advance
ciao