The following warnings occurred:
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 871 - File: showthread.php PHP 7.4.15 (Linux)
File Line Function
/showthread.php 871 errorHandler->error



FORUMS


The Form Tools forums are no longer active, but the old posts have been archived here. Please see the Help page on how to get help / report issues.

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Multi Page Form
#1
All -

Sure could use some help ... with a multi-page form.

I am able to successfully complete the setup of a form using FT.

However, FT is only capturing form data from the first page of a three page form.

What am I doing wrong?

Here is my code for the three page form and "thank you" page.

Form Page #1:
PHP Code:
<?php
require_once("x/global/api/api.php");
$fields ft_api_init_form_page("""test");
$params = array(
  
"submit_button" => "submit",
  
"next_page" => "form-2b.php",
  
"form_data" => $_POST
    
);
ft_api_process_form($params);
?>


<!DOCTYPE html>
<html lang="en">
<head>
<title>form</title>    
</head>
  
<body>
  
<!-- Start of FORM -->

<form action="<?php echo $_SERVER["PHP_SELF"]?>" method="POST">
First Name:  <input type="text" name="FirstName" value="">
<br />
<br />
Last Name:  <input type="text" name="LastName" value="">
<br />
<br />
<input type="submit" name="submit" value="submit">
</form>

<!-- End of FORM -->

</body>
</html> 

Form Page #2:
PHP Code:
<?php
require_once("x/global/api/api.php");
$fields ft_api_init_form_page();
$params = array(
  
"submit_button" => "submit",
  
"next_page" => "form-3b.php",
  
"form_data" => $_POST,
  
"no_sessions_url" => "form-1b.php"
    
);
ft_api_process_form($params);
?>


<!DOCTYPE html>
<html lang="en">

<head>
<title>form</title>
</head>

<body>

<!-- Start of FORM -->

<form action="<?php echo $_SERVER["PHP_SELF"]?>" method="POST">
Address:  <input type="text" name="Address" value="">
<br />
<br />
City:  <input type="text" name="City" value="">
<br />
<br />
State:  <input type="text" name="State" value="">
<br />
<br />
Zip:  <input type="text" name="Zip" value="">
<br />
<br />
<input type="submit" name="submit" value="submit">
</form>

<!-- End of FORM -->

</body>
</html> 

Form Page #3:
PHP Code:
<?php
require_once("x/global/api/api.php");
$fields ft_api_init_form_page();
$params = array(
  
"submit_button" => "submit",
  
"next_page" => "thank_you_b.php",
  
"form_data" => $_POST,
  
"finalize" => true
    
);
ft_api_process_form($params);
?>


<!DOCTYPE html>
<html lang="en">
<head>
<title>form</title>
</head>

<body>

<!-- Start of FORM -->

<form action="<?php echo $_SERVER["PHP_SELF"]?>" method="POST">
Email:  <input type="text" name="Email" value="">
<br />
<br />
Telephone:  <input type="text" name="Telephone" value="">
<br />
<br />

<input type="submit" name="submit" value="submit">
</form>

<!-- End of FORM -->

/body>
</html> 

Thank You Page:
PHP Code:
<?php
require_once("x/global/api/api.php");
$fields ft_api_init_form_page();
ft_api_clear_form_sessions();
?>

<!DOCTYPE html>
<html lang="en">
<head>
<title>form</title>
</head>

<body>
Thank you.
</body>
</html> 

Many thanks for the assistance.

Jeff -
Reply


Messages In This Thread
Multi Page Form - by zrakotj - Oct 14th, 2011, 5:55 AM
RE: Multi Page Form - by Ben - Oct 15th, 2011, 3:08 PM
RE: Multi Page Form - by zrakotj - Oct 20th, 2011, 10:43 AM
RE: Multi Page Form - by Ben - Oct 24th, 2011, 10:05 AM
RE: Multi Page Form - by zrakotj - Oct 25th, 2011, 12:19 PM
RE: Multi Page Form - by streamcities - Dec 14th, 2011, 6:59 AM
RE: Multi Page Form - by Ben - Dec 17th, 2011, 12:26 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)