The Form Tools forums are no longer active, but the old posts have been archived here. Please see the Help page on how to get help / report issues.

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Trouble with thankyou.php and email confirmation.

I am having with my form submitting, but not directing to the thank you page, nor generating an email.

Here is the beginning code for the actual form:

/*Place initiation code here*/
$fields = ft_api_init_form_page(57);

$errors = array();
if (isset($_POST['submit']))
$rules = array();
$rules[] = "required,name,Please enter your full name.";
$rules[] = "required,phone,Please enter your phone number.";
$rules[] = "reg_exp,phone,^[01]?[- .]?\(?[2-9]\d{2}\)?[- .]?\d{3}[- .]?\d{4}$,Please enter a valid phone number.";
$rules[] = "required,email,Please enter an email address.";
$rules[] = "valid_email,email,Please enter a valid email address.";
$rules[] = "required,street,Please enter your street address.";
$rules[] = "required,city,Please enter your city.";
$rules[] = "required,state,Please enter your state.";
$rules[] = "required,zip,Please enter your zip code.";
$rules[] = "length=5,zip,Enter a 5 digit zip code.";
$rules[] = "digits_only,zip,Use only numbers for the zip code.";
$errors = validate_fields($_POST, $rules);

$params = array(
"submit_button" => "submit",
"next_page" => "extsvsthankyou.php",
"form_data" => $_POST,
"finalize" => true

Here is the beginning of the code for the thankyou.php page:

$fields = ft_api_init_form_page(57);

I have changed the "../formtools/global/api/api.php" to the full file name, and it generated an error. The form does submit, and I am able to see it, but the thank you page does not generate.

When I manually type in the url for the thank you page, it does generate the fields for the submitted form.

Please advise on what errors I should fix. I am using version 2.0.4 (will update soon).


Forum Jump:

Users browsing this thread: 1 Guest(s)