Hi people, i have a form that 1 person can submit many times.
The first time submit is good and working prefectly.
But the second time i get a
ERROR
Error Type: User
Error Code: #302 — Learn more about this error.
Debugging:
Submission ID: 965
And when i click learn more about this error, i see
The submission is already finalized! The ft_api_process_form only processes submissions that aren't finalized. You need to confirm that you are only finalizing the submission on the FINAL step of your form. See the documentation on ft_api_process_form form more information.
I dont understand what does it say. so what should i do?
oh
this is my thank you page
<?php
require_once("/home/tuitionh/domains/domain.com/public_html/formtools/global/api/api.php");
$fields = ft_api_init_form_page();
$REFERER = getenv('HTTP_REFERER'); // get ref URL
if ( $REFERER == 'http://domain.com/site/engagephp' || $REFERER == 'http://domain.com/site/engageatutorform4.php')
{
ft_api_clear_form_sessions("engage");
}
elseif ( $REFERER == 'http://domain.com/site/beform4.php' || $REFERER == 'http://domain.com/site/beform4.php')
{
ft_api_clear_form_sessions("be");
}
elseif ( $REFERER == 'http://domain.com/site/apply.php' || $REFERER == 'http://domain.com/site/applyt.php')
{
ft_api_clear_form_sessions("apply");
}
elseif ( $REFERER == 'http://domain.com/site/contactus.php' || $REFERER == 'http://domain.com/site/contactus.php')
{
ft_api_clear_form_sessions("contactus");
}
?>
where can i put in ft_api_process_form ?
The first time submit is good and working prefectly.
But the second time i get a
ERROR
Error Type: User
Error Code: #302 — Learn more about this error.
Debugging:
Submission ID: 965
And when i click learn more about this error, i see
The submission is already finalized! The ft_api_process_form only processes submissions that aren't finalized. You need to confirm that you are only finalizing the submission on the FINAL step of your form. See the documentation on ft_api_process_form form more information.
I dont understand what does it say. so what should i do?
oh
this is my thank you page
<?php
require_once("/home/tuitionh/domains/domain.com/public_html/formtools/global/api/api.php");
$fields = ft_api_init_form_page();
$REFERER = getenv('HTTP_REFERER'); // get ref URL
if ( $REFERER == 'http://domain.com/site/engagephp' || $REFERER == 'http://domain.com/site/engageatutorform4.php')
{
ft_api_clear_form_sessions("engage");
}
elseif ( $REFERER == 'http://domain.com/site/beform4.php' || $REFERER == 'http://domain.com/site/beform4.php')
{
ft_api_clear_form_sessions("be");
}
elseif ( $REFERER == 'http://domain.com/site/apply.php' || $REFERER == 'http://domain.com/site/applyt.php')
{
ft_api_clear_form_sessions("apply");
}
elseif ( $REFERER == 'http://domain.com/site/contactus.php' || $REFERER == 'http://domain.com/site/contactus.php')
{
ft_api_clear_form_sessions("contactus");
}
?>
where can i put in ft_api_process_form ?