Sep 27th, 2010, 5:50 AM
Hi Ben-
I am having the same sort of issue.... i have the form all set up, it is submitting the info into the database, and it is moving on to the next page fine, but it is not passing all the information on to the next page. The submission_id goes through ok, but the unique_key does not get passed through. It is being generated and put into the submission just fine, and if I go into the table and pull it out and append it to the url with it does pull up the proper information. I have checked and the field is set to be passed on.
Here is the code from the top of my form page:
require_once("../webadmin/formtoolsnew/global/api/api.php");
$fields = ft_api_init_form_page(3);
$submission_id = $fields["form_tools_submission_id"];
$unique_key = $fields["unique_key"];
$params = array(
"submit_button" => "Submit",
"next_page" => "acquisitions.thanks.php?submission_id=$submission_id&unique_key=$unique_key",
"form_data" => $_POST,
"finalize" => true
);
ft_api_process_form($params);
and here is the code from my receipt page:
<?php
if (isset($_GET["submission_id"]) && isset($_GET["unique_key"]))
{
$form_id = 3;
$view_id = 3;
$export_type_id = 3;
$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"]);
}
}
?>
Any thoughts?
I am having the same sort of issue.... i have the form all set up, it is submitting the info into the database, and it is moving on to the next page fine, but it is not passing all the information on to the next page. The submission_id goes through ok, but the unique_key does not get passed through. It is being generated and put into the submission just fine, and if I go into the table and pull it out and append it to the url with it does pull up the proper information. I have checked and the field is set to be passed on.
Here is the code from the top of my form page:
require_once("../webadmin/formtoolsnew/global/api/api.php");
$fields = ft_api_init_form_page(3);
$submission_id = $fields["form_tools_submission_id"];
$unique_key = $fields["unique_key"];
$params = array(
"submit_button" => "Submit",
"next_page" => "acquisitions.thanks.php?submission_id=$submission_id&unique_key=$unique_key",
"form_data" => $_POST,
"finalize" => true
);
ft_api_process_form($params);
and here is the code from my receipt page:
<?php
if (isset($_GET["submission_id"]) && isset($_GET["unique_key"]))
{
$form_id = 3;
$view_id = 3;
$export_type_id = 3;
$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"]);
}
}
?>
Any thoughts?