Nov 25th, 2015, 10:19 AM
Thought I should give you the code I have (at the moment, since I keep changing it around to see what I'm doing wrong)
<?php
require_once("../forms/global/api/api.php");
$fields = ft_api_init_form_page("", "test");
$params = array(
"submit_button" => "submit",
"next_page" => "spell_craft_contest_thanks.php",
"form_data" => $_POST,
"file_data" => $_FILES,
"finalize" => true
);
ft_api_process_form($params);
?>
and the form:
<form action="<?php echo $_SERVER["PHP_SELF"]?>" id="spellcraft_contest" method="POST">
<fieldset>
<label for="name">Name</label>
<input type="text" name="name" placeholder="Your Name" title="Enter your name" class="required"><br>Feel free to use your magickal name if you have one.<br>
<label for="email">E-mail</label>
<input type="email" name="email" placeholder="email" title="your email" class="required email"><br>
Please make sure this is correct, or you won't be able to win!<br>
<label for="fileformat">If you win, what file format do you want?</label>
<select name="fileformat">
<option value="kindle">.mobi</option>
<option value="epub">.epub</option>
<option value="pdf">.pdf</option>
</select><br>
<label for="mailinglist">Join my mailing list?</label>
<select name="mailinglist">
<option value="yesmail">Yes</option>
<option value="nomail">No</option>
</select><br>
(We will never sell or give away your info.)<br>
<input type="submit" name="submit" class="button" id="submit" value="submit" />
</fieldset>
</form>
and the thanks page:
<?php
require_once("../forms/global/api/api.php");
$fields = ft_api_init_form_page();
ft_api_clear_form_sessions();
?>
So far I've tried submitting several dozen times with zero luck. I've also tried refreshing the thanks page before I submit, but that doesn't make a difference.
Any clue what I'm doing wrong?
Thanks again!
<?php
require_once("../forms/global/api/api.php");
$fields = ft_api_init_form_page("", "test");
$params = array(
"submit_button" => "submit",
"next_page" => "spell_craft_contest_thanks.php",
"form_data" => $_POST,
"file_data" => $_FILES,
"finalize" => true
);
ft_api_process_form($params);
?>
and the form:
<form action="<?php echo $_SERVER["PHP_SELF"]?>" id="spellcraft_contest" method="POST">
<fieldset>
<label for="name">Name</label>
<input type="text" name="name" placeholder="Your Name" title="Enter your name" class="required"><br>Feel free to use your magickal name if you have one.<br>
<label for="email">E-mail</label>
<input type="email" name="email" placeholder="email" title="your email" class="required email"><br>
Please make sure this is correct, or you won't be able to win!<br>
<label for="fileformat">If you win, what file format do you want?</label>
<select name="fileformat">
<option value="kindle">.mobi</option>
<option value="epub">.epub</option>
<option value="pdf">.pdf</option>
</select><br>
<label for="mailinglist">Join my mailing list?</label>
<select name="mailinglist">
<option value="yesmail">Yes</option>
<option value="nomail">No</option>
</select><br>
(We will never sell or give away your info.)<br>
<input type="submit" name="submit" class="button" id="submit" value="submit" />
</fieldset>
</form>
and the thanks page:
<?php
require_once("../forms/global/api/api.php");
$fields = ft_api_init_form_page();
ft_api_clear_form_sessions();
?>
So far I've tried submitting several dozen times with zero luck. I've also tried refreshing the thanks page before I submit, but that doesn't make a difference.
Any clue what I'm doing wrong?
Thanks again!