May 3rd, 2013, 12:14 AM
Hi' There
I have a strange problem which i need someone to help me with.
I have three external multiple-page forms, all using the API method. They have three seperate ID's (1,2 and 3).
An example which illustrates my problem:
If a user goes to my website and start filling out form 1. He doesn't finish filling in form 1, meaning he doesn't submit. Instead he founds out that he needs to fill out form 2 instead. He closes form 1, and starts filling out form 2 instead. He submits form 2, but somehow the system/browser still thinks he is using form 1, so the system submits what he has filled in, in form 2, as form 1.
It is the same the other way around. Whatever form the user picks first, the system thinks he finishes this form even though the user changes form.
Can anyone tell what can cause this...???
Below is the php code used on the first page of each of the three forms.
I have a strange problem which i need someone to help me with.
I have three external multiple-page forms, all using the API method. They have three seperate ID's (1,2 and 3).
An example which illustrates my problem:
If a user goes to my website and start filling out form 1. He doesn't finish filling in form 1, meaning he doesn't submit. Instead he founds out that he needs to fill out form 2 instead. He closes form 1, and starts filling out form 2 instead. He submits form 2, but somehow the system/browser still thinks he is using form 1, so the system submits what he has filled in, in form 2, as form 1.
It is the same the other way around. Whatever form the user picks first, the system thinks he finishes this form even though the user changes form.
Can anyone tell what can cause this...???
Below is the php code used on the first page of each of the three forms.
PHP Code:
<?php
require_once("../searchpro/data/formtools/global/api/api.php");
$fields = ft_api_init_form_page(1);
if (isset($_POST['Submit2']))
{
$params = array(
"submit_button" => "Submit2",
"next_page" => "thankyoupage2.php",
"form_data" => $_POST,
"finalize" => true
);
}
else
{
$params = array(
"submit_button" => "Submit1",
"next_page" => "testformtools2.php",
"form_data" => $_POST,
);
}
ft_api_process_form($params);
?>
PHP Code:
<?php
require_once("../searchpro/data/formtools/global/api/api.php");
$fields = ft_api_init_form_page(2);
$params = array(
"submit_button" => "Submit1",
"next_page" => "customform2.php",
"form_data" => $_POST
);
ft_api_process_form($params);
?>
PHP Code:
<?php
require_once("../searchpro/data/formtools/global/api/api.php");
$fields = ft_api_init_form_page(3);
$params = array(
"submit_button" => "Submit1",
"next_page" => "stencil1.php",
"form_data" => $_POST
);
ft_api_process_form($params);
?>