Feb 10th, 2011, 10:33 AM
Ben, I sent you an email on this but thought I'd try to get a hold of you this way as well. I'm having one heck of a time getting this to to work. Can you please take a look at my code and let me know if you see anything wrong?
Form is located at:http://www.roadcareplus.com/main/activation-online.php
Thank you:http://www.roadcareplus.com/main/thankyou-online.php
FORM PAGE PHP:
<?php
require_once("formtools/global/api/api.php");
$fields = ft_api_init_form_page("4");
$submission_id = $fields["submission_id"];
$unique_key = $fields["unique_key"];
$params = array(
"submit_button" => "submit",
"next_page" => "thankyou-online.php",
"form_data" => $_POST,
"finalize" => true
);
ft_api_process_form($params);
?>
//Just showing you the action part of my form
<form id="form" action="<?php echo $_SERVER["PHP_SELF"]?>" method="POST" onsubmit="return rsv.validate(this, rules)">
THANK YOU PAGE PHP:
//Prior to the HTML tag
<?php
require_once("formtools/global/api/api.php");
$fields = ft_api_init_form_page();
ft_api_clear_form_sessions();
$submission_id = $fields["submission_id"];
$unique_key = $fields["unique_key"];
?>
//In the div where I want my results
<?php
if (!empty($submission_id) && !empty($unique_key))
{
$form_id = 4;
$view_id = 4;
$export_type_id = 3;
{
ft_api_show_submission($form_id, $view_id, $export_type_id, $submission_id);
}
}
?>
Note: All of the tutorials stated that I should have seen a value in my url string when I checked the "pass on" radio button. I was never able to get that to work prior to trying your method in this thread. Perhaps my values aren't being passed at all? I don't know how to properly debug.
Thanks so much for any help you can give.
Form is located at:http://www.roadcareplus.com/main/activation-online.php
Thank you:http://www.roadcareplus.com/main/thankyou-online.php
FORM PAGE PHP:
<?php
require_once("formtools/global/api/api.php");
$fields = ft_api_init_form_page("4");
$submission_id = $fields["submission_id"];
$unique_key = $fields["unique_key"];
$params = array(
"submit_button" => "submit",
"next_page" => "thankyou-online.php",
"form_data" => $_POST,
"finalize" => true
);
ft_api_process_form($params);
?>
//Just showing you the action part of my form
<form id="form" action="<?php echo $_SERVER["PHP_SELF"]?>" method="POST" onsubmit="return rsv.validate(this, rules)">
THANK YOU PAGE PHP:
//Prior to the HTML tag
<?php
require_once("formtools/global/api/api.php");
$fields = ft_api_init_form_page();
ft_api_clear_form_sessions();
$submission_id = $fields["submission_id"];
$unique_key = $fields["unique_key"];
?>
//In the div where I want my results
<?php
if (!empty($submission_id) && !empty($unique_key))
{
$form_id = 4;
$view_id = 4;
$export_type_id = 3;
{
ft_api_show_submission($form_id, $view_id, $export_type_id, $submission_id);
}
}
?>
Note: All of the tutorials stated that I should have seen a value in my url string when I checked the "pass on" radio button. I was never able to get that to work prior to trying your method in this thread. Perhaps my values aren't being passed at all? I don't know how to properly debug.
Thanks so much for any help you can give.