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
keeping form data on error validation
#2
You're missing an else statement in your code...

Change this portion of your code:
PHP Code:
$params = array(
"submit_button" => "submit",
"next_page" => "thanks.php",
"form_data" => $_POST,
"file_data" => $_FILES,
"finalize" => true
);
ft_api_process_form($params);
}
}

?>

To:

PHP Code:
$params = array(
"submit_button" => "submit",
"next_page" => "thanks.php",
"form_data" => $_POST,
"file_data" => $_FILES,
"finalize" => true
);
ft_api_process_form($params);
} else {
$fields array_merge($fields$_POST);         
        
}


And see if that does the trick...
Reply


Messages In This Thread
keeping form data on error validation - by robotech - Oct 9th, 2009, 3:11 PM
RE: keeping for data on error validation - by msaz87 - Oct 9th, 2009, 11:12 PM
RE: keeping for data on error validation - by robotech - Oct 10th, 2009, 3:08 PM
RE: keeping form data on error validation - by msaz87 - Oct 10th, 2009, 4:50 PM
RE: keeping form data on error validation - by msaz87 - Mar 31st, 2012, 7:29 PM
RE: keeping form data on error validation - by msaz87 - Jul 23rd, 2012, 1:50 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)