Thank you for taking the time to look at this.
Form Tools is wonderful, but I am totally blocked (and ripping my hair out). I spent more then 8 hours tinkering, combing the docs and this forum, I have tried endless variations, but I cant get this (simple) API form to return any response but a blank page.
Internal forms with my own custom forms, or the Auto-Generated type, are working perfectly - just cant make that next leap to api.
Can anyone offer some suggestions?
Most appreciatively,
-Jim
__________________________________________
Form draws correctly if I remove this first block of php code from top of page...
Regarding Paths: This is the url to the form
http://MyDomain.com/formtools/posforms/posformapi.php
<?php
require_once("global/api/api.php");
$fields = ft_api_init_form_page("", "test");
$params = array("submit_button" => "submit_button",
"next_page" => "posforms/result.php",
"form_data" => $_POST,
"file_data" => $_FILES,
"finalize" => true
);
ft_api_process_form($params);
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Sample Form</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<!-- Form Tag... -->
<form action="<?php echo $_SERVER["PHP_SELF"]?>" method="POST">
<!-- Field Definitions... -->
Name
<input type="text"
name="fullname"
value="<?=htmlspecialchars(@$fields["fullname"])?>" />
Email
<input type="text"
name="email"
value="<?=htmlspecialchars(@$fields["email"])?>" />
Comments
<input type="text"
name="comments"
value="<?=htmlspecialchars(@$fields["comments"])?>" />
<!--Additinal Script Parameters -->
<input type="hidden" name="form_tools_form_id" value="" />
<input type="submit" name="submit_button" value="Submit Form" />
<!-- _____________________ -->
</form>
</body>
</html>
Form Tools is wonderful, but I am totally blocked (and ripping my hair out). I spent more then 8 hours tinkering, combing the docs and this forum, I have tried endless variations, but I cant get this (simple) API form to return any response but a blank page.
Internal forms with my own custom forms, or the Auto-Generated type, are working perfectly - just cant make that next leap to api.
Can anyone offer some suggestions?
Most appreciatively,
-Jim
__________________________________________
Form draws correctly if I remove this first block of php code from top of page...
Regarding Paths: This is the url to the form
http://MyDomain.com/formtools/posforms/posformapi.php
<?php
require_once("global/api/api.php");
$fields = ft_api_init_form_page("", "test");
$params = array("submit_button" => "submit_button",
"next_page" => "posforms/result.php",
"form_data" => $_POST,
"file_data" => $_FILES,
"finalize" => true
);
ft_api_process_form($params);
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Sample Form</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<!-- Form Tag... -->
<form action="<?php echo $_SERVER["PHP_SELF"]?>" method="POST">
<!-- Field Definitions... -->
Name
<input type="text"
name="fullname"
value="<?=htmlspecialchars(@$fields["fullname"])?>" />
<input type="text"
name="email"
value="<?=htmlspecialchars(@$fields["email"])?>" />
Comments
<input type="text"
name="comments"
value="<?=htmlspecialchars(@$fields["comments"])?>" />
<!--Additinal Script Parameters -->
<input type="hidden" name="form_tools_form_id" value="" />
<input type="submit" name="submit_button" value="Submit Form" />
<!-- _____________________ -->
</form>
</body>
</html>