Hi,
I have started with
http://docs.formtools.org/tutorials/api_...page=step1 and created a new test form and verified the page. When I complete the form it does not go the thank you page. My code is
<?php
require_once("../formtools/global/api/api.php");
$fields = ft_api_init_form_page("10", "initialize");
$params = array(
"submit_button" => "submit",
"next_page" => "../scripts/template-thanks.htm",
"form_data" => $_POST,
"file_data" => $_FILES,
"finalize" => true
);
ft_api_process_form($params);
?>
<head>
<meta http-equiv="Content-Language" content="en-gb" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Formtools api test</title>
</head>
<body>
<p>Test Form for formtools api</p>
<form action="<?php echo $_SERVER["PHP_SELF"]?>" method="POST">
<br />
<input name="Text1" type="text" /> text1<br />
<input name="Text2" type="text" /> text2<br />
<input name="Radio1" type="radio" />
<input name="Radio2" type="radio" checked="checked" /><br />
<br />
<textarea name="Text" cols="60" rows="6"></textarea> text<br />
<input name="Reset" type="reset" value="reset" /><br />
<br />
<input name="Submit" type="submit" value="submit" /></form>
</body>
I really did have fun but now need you to push me in the right direction.
Regards
Drachsi
(Dec 26th, 2010, 9:55 AM)Ben Wrote: Hi Drachsi,
Sure! The email templates are quite powerful: not only can you enter in placeholders like that, but you can also add in logic to only output text, depending on values in your form.
Maybe give this page a read through:
http://docs.formtools.org/userdoc/?page=...ontent_tab
Personally, I'd try just tinkering around with it through the interface: add and remove content and use the "Test" tab to send you examples of the email or just display them in the page. This can really help make sense of it.
Good luck!
- Ben