May 5th, 2010, 4:46 AM
Hello
Since few weeks, I get an intermittent failure. Sometimes, after submitting the form a #305 Error, but I don't know why?!
Here is the link to my form:http://www.recht-auf-spiel.de/eure_projekte_eintragen_neu.php
And here is the code of the form page:
I try to delete the row with "ft_api_delete_unfinalized_submissions(3, true);" but without any result.
I think the error appears, when a user starts to fill out the form but go back with the backbutton in the browser and starts again.
Have you any idea to solve the problem?
Thank you very much and sorry for my bad english :/ I hope you know what I mean
Since few weeks, I get an intermittent failure. Sometimes, after submitting the form a #305 Error, but I don't know why?!
Here is the link to my form:http://www.recht-auf-spiel.de/eure_projekte_eintragen_neu.php
And here is the code of the form page:
PHP Code:
<?php
require_once("formtools/global/api/api.php");
$fields = ft_api_init_form_page(3);
// validation time!
$errors = array();
if (isset($_POST['submit_button']))
{
$rules = array();
$rules[] = "required,projekt_titel,Bitte Projekttitel angeben.";
$errors = validate_fields($_POST, $rules);
// no errors - great! Now we process the page. The ft_api_process_form does
// the job of both updating the database and redirecting to the next page
if (empty($errors))
{
$params = array(
"submit_button" => "submit_button",
"next_page" => "thanks.php",
"form_data" => $_POST,
"file_data" => $_FILES,
"finalize" => true
);
ft_api_process_form($params);
ft_api_delete_unfinalized_submissions(3, true);
}
else
{
$fields = array_merge($_SESSION["form_tools_form"], $_POST);
}
}
?>
I try to delete the row with "ft_api_delete_unfinalized_submissions(3, true);" but without any result.
I think the error appears, when a user starts to fill out the form but go back with the backbutton in the browser and starts again.
Have you any idea to solve the problem?
Thank you very much and sorry for my bad english :/ I hope you know what I mean