Mar 8th, 2012, 9:37 AM
(This post was last modified: Mar 8th, 2012, 9:54 AM by michatmaster7.)
Ok, I've found a problem. I thought it was related to my MailChimp API integration, but I removed my API code and I'm still seeing this problem. When a form is submitted but it fails error validation (PHP), the fields do not refill and the following message appears:
The line it mentions in the code is the else statement after error checking:
Ideas?
Update: I found the solution and it was actually pretty simple.
If you've chosen a namespace, then you must replace this:
with this:
Where "custom_namespace" equals whatever you chose as the namespace name.
Code:
Notice: Undefined index: form_tools_form in /formlocation.php on line XX
Warning: array_merge() [function.array-merge]: Argument #1 is not an array in /formlocation.php on line XX
The line it mentions in the code is the else statement after error checking:
PHP Code:
$fields = array_merge($_SESSION["form_tools_form"], $_POST);
Ideas?
Update: I found the solution and it was actually pretty simple.
If you've chosen a namespace, then you must replace this:
PHP Code:
$fields = array_merge($_SESSION["form_tools_form"], $_POST);
with this:
PHP Code:
$fields = array_merge($_SESSION["custom_namespace"], $_POST);
Where "custom_namespace" equals whatever you chose as the namespace name.