Posts: 3
Threads: 1
Joined: Dec 2010
Reputation:
0
Jan 20th, 2011, 6:34 PM
(This post was last modified: Jan 20th, 2011, 6:35 PM by newbie2005.)
When I install form tools and would like to test the API function, but can't success follow tutorial page, Any sample of API form, let me test first ?
Posts: 3
Threads: 1
Joined: Dec 2010
Reputation:
0
Jan 24th, 2011, 12:25 AM
(This post was last modified: Jan 24th, 2011, 12:26 AM by newbie2005.)
I follow the "Adding a single-page form with the API" page to create
testapi.php, detail as below
<?php
require_once("my webserver path/to/form_tools/global/api/api.php");
$fields = ft_api_init_form_page("", "test");
$params = array(
"submit_button" => "submit_button_name_attribute",
"next_page" => "thanks.php",
"form_data" => $_POST,
"file_data" => $_FILES,
"finalize" => true
);
ft_api_process_form($params);
?>
Select add form, in step 3 "TEST SUBMISSION" found
"Form Tools hasn't received a successful test submission yet. "
any mistake ?