Jan 25th, 2011, 9:29 AM
Hi there
Just trying to get a multi-page form setup and working and I'm having some real trouble.
I'm using the API with this code above the form:
The page stops loading at the point where this code appears. I've tried placing this at the top of my page and the page won't load at all. The page has a .php extension and we're using PHP 5.2.14 on a linux server.
I've tested the form without the code and it then loads properly. The only thing I can think of is that I'm running this form from a demo site subdomain (demo.mysite.ca) while formtools is loaded on the main web site (mysite.ca). Both sites are running from the same domain.
Thanks for helping.
Cheers
G
Just trying to get a multi-page form setup and working and I'm having some real trouble.
I'm using the API with this code above the form:
Code:
<?php
require_once("/var/www/vhosts/xxxxxxxxxx.ca/httpdocs/ftools/global/api/api.php");
$fields = ft_api_init_form_page("", "test");
$params = array(
"submit_button" => "app_Submit1",
"next_page" => "page2.php",
"form_data" => $_POST
);
ft_api_process_form($params);
?>
Code:
<form id="form" name="form" action="<?php echo $_SERVER["PHP_SELF"]?>" enctype="application/x-www-form-urlencoded" method="post">
The page stops loading at the point where this code appears. I've tried placing this at the top of my page and the page won't load at all. The page has a .php extension and we're using PHP 5.2.14 on a linux server.
I've tested the form without the code and it then loads properly. The only thing I can think of is that I'm running this form from a demo site subdomain (demo.mysite.ca) while formtools is loaded on the main web site (mysite.ca). Both sites are running from the same domain.
Thanks for helping.
Cheers
G