The following warnings occurred:
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 871 - File: showthread.php PHP 7.4.12 (Linux)
File Line Function
/showthread.php 871 errorHandler->error


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
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!

Messages In This Thread
[FIXED] Form not submitting, no thankyou page - by sergiozambrano - Aug 14th, 2009, 5:48 AM

Forum Jump:

Users browsing this thread: 1 Guest(s)