FORUMS


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
[FIXED] Form not submitting, no thankyou page
#1
Exclamation 
Note that you need the word "submit" inside the line
if (isset($_POST['submit'])) {
to match your submit button "name" attribute.

e.g. if your submit button is not named "submit" but "contact_submit" your code should look something like:

if (isset($_POST['contact_submit'])) {
$rules = array();
$rules[] = "required,name,Please enter your name.";
$rules[] = "required,email,Please enter your email address.";
$rules[] = "valid_email,email,Please enter a valid email address.";
$errors = validate_fields($_POST, $rules);

I hope that helps you save hours!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)