I have used Form Tools once in the past on a mutiple page form and it went very well when setting it up; however, I redesigned my website and deleted that form. Now I am using a single page form but I have tried NUMEROUS ways to getting the form to work properly and to no avail. I even reinstalled Form Tools and started from the beginning andx still nothing. When I copy and paste the php info directly from the doc sheets on both the form page and the thank you page and implement them into my forms (before the html tag) and add the "PHP SERVER" statement into the "action" line in the form tag, when submitted it returns the exact same page without the data in the fields as if submission has taken place. I understand about sessions and have cleared them in both using the php statements that Form Tools require on the last page (thank you page), using the delete_session() sessions statement directly or even closing the browser completely and reopening it which should have cleared any sessions period. (Browser in use is IE8 - cannot go any higher due to using xp). I have read and re-read the docs numerous times as well as crawled over a number of threads looking for an answer but no luck (have tried several suggetions). Both of the pages in question can be accessed from the website when called upon. Below is simply the API setup posted at the top of both pages along with any pertinent lines involving the doc information in order from posting both pages in their entirety; however; they can be seen at babybraceletsandsuch.com/contactus.php and /successcontactsubmission.php respectfully.
Contact form:
URL - babybraceletsandsuch/contactus.php
<?php
require_once("/home/scottfam/public_html/babybraceletsandsuch.com/form_tools/global/api/api.php");
$fields = ft_api_init_form_page(1, "initialize");
$params = array(
"submit_button" => "contact",
"next_page" => "successcontactsubmission.php",
"form_data" => $_POST,
"finalize" => true
);
ft_api_process_form($params);
?>
<!DOCTYPE html>
<form action="<?php echo $_SERVER["PHP_SELF"]?>" method='POST'>
<input type='image' name='contact' class='submit' src='/Images/submit.png' alt='Submit'>
Thank You page:
URL - babybraceletsandsuch/successcontactsubmission.php
<?php
require_once("/home/scottfam/public_html/babybraceletsandsuch.com/formtools/global/api/api.php");
$fields = ft_api_init_form_page();
ft_api_clear_form_sessions();
?>
<!DOCTYPE html>
Any help would be greatly appreciated since I cannot find my problem and I have spent almost 3 days simply trying to figure this out and my tylenol bottle is getting pretty low. Thank you for your effort.
P.S. - I did notice that when I viewed the "source" code from the internet that the "php" code on the top of the page is missing. It is definitely on the page located on my computer but it is not there after having been uploaded to my website. Is this normal or do I have another issue that I need to address?
Contact form:
URL - babybraceletsandsuch/contactus.php
<?php
require_once("/home/scottfam/public_html/babybraceletsandsuch.com/form_tools/global/api/api.php");
$fields = ft_api_init_form_page(1, "initialize");
$params = array(
"submit_button" => "contact",
"next_page" => "successcontactsubmission.php",
"form_data" => $_POST,
"finalize" => true
);
ft_api_process_form($params);
?>
<!DOCTYPE html>
<form action="<?php echo $_SERVER["PHP_SELF"]?>" method='POST'>
<input type='image' name='contact' class='submit' src='/Images/submit.png' alt='Submit'>
Thank You page:
URL - babybraceletsandsuch/successcontactsubmission.php
<?php
require_once("/home/scottfam/public_html/babybraceletsandsuch.com/formtools/global/api/api.php");
$fields = ft_api_init_form_page();
ft_api_clear_form_sessions();
?>
<!DOCTYPE html>
Any help would be greatly appreciated since I cannot find my problem and I have spent almost 3 days simply trying to figure this out and my tylenol bottle is getting pretty low. Thank you for your effort.
P.S. - I did notice that when I viewed the "source" code from the internet that the "php" code on the top of the page is missing. It is definitely on the page located on my computer but it is not there after having been uploaded to my website. Is this normal or do I have another issue that I need to address?