Dec 27th, 2009, 5:35 AM
Hmm, I'm having real problems trying to do this. I can get the forms in the database by using this code:
But that gets a lot of errors referring to headers already being sent, as this code really needs to be at the top of the page.
But when I do that it interferes with the methods im calling for the SOAP function.
So if I could add some code in the same area as I tried above, then this would be ideal. I just need to get that data into the formtools database. Is there any manual code I could use?
If anyone can help I would really appreciate it.
Cheers :-P
Code:
<?php if ($result[[Message] == "OK" ) {
require_once("leads/global/api/api.php");
$fields = ft_api_init_form_page(2, "initialize");
$params = array(
"submit_button" => "submit",
//"next_page" => "thanks.php",
"form_data" => $_POST,
//"file_data" => $_FILES,
"finalize" => true
);
ft_api_process_form($params);
?>
THANK YOU TEXT
<?php } else { ?>
But that gets a lot of errors referring to headers already being sent, as this code really needs to be at the top of the page.
But when I do that it interferes with the methods im calling for the SOAP function.
So if I could add some code in the same area as I tried above, then this would be ideal. I just need to get that data into the formtools database. Is there any manual code I could use?
If anyone can help I would really appreciate it.
Cheers :-P