Apr 7th, 2010, 4:50 PM
Your tutorial was great. I followed it explicitly. I think everything is now setup correctly. The one problem that I am having is that there is nothing being "passed on" from my form to my success page. The form works correctly, and I am able to get to my success page just fine. But there is nothing in the query string that would show the submission ID and the unique key are getting passed on. Only my original URL. I will post some info below. Hopefully, you can figure out the issue from there. Thank you.
Form php code:
<?php
require_once("../NewForms/global/api/api.php");
$fields = ft_api_init_form_page(3);
$params = array(
"submit_button" => "Submit",
"next_page" => "success_GDF.php",
"form_data" => $_POST,
"finalize" => true
);
ft_api_process_form($params);
?>
//pasted at the very top of my code
<form action="<?php echo $_SERVER["PHP_SELF"]?>" method="POST">
//pasted in the body of my form
Success page php code:
<?php
require_once("../NewForms/global/api/api.php");
$fields = ft_api_init_form_page();
ft_api_clear_form_sessions();
?>
//pasted at the very top of my code
<?php
if (isset($_GET["submission_id"]) && isset($_GET["unique_key"]))
{
$form_id = 3;
$view_id = 3;
$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"]);
}
}
?>
//pasted in the body of my form
Form php code:
<?php
require_once("../NewForms/global/api/api.php");
$fields = ft_api_init_form_page(3);
$params = array(
"submit_button" => "Submit",
"next_page" => "success_GDF.php",
"form_data" => $_POST,
"finalize" => true
);
ft_api_process_form($params);
?>
//pasted at the very top of my code
<form action="<?php echo $_SERVER["PHP_SELF"]?>" method="POST">
//pasted in the body of my form
Success page php code:
<?php
require_once("../NewForms/global/api/api.php");
$fields = ft_api_init_form_page();
ft_api_clear_form_sessions();
?>
//pasted at the very top of my code
<?php
if (isset($_GET["submission_id"]) && isset($_GET["unique_key"]))
{
$form_id = 3;
$view_id = 3;
$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"]);
}
}
?>
//pasted in the body of my form