Found the problem. I had a typo on my conditional statement.
if( $fix->ValArray( $_POST['add_order_items'] === -1 ) ) {
$errors['add_order_array'] = $erlink;
}
Should have been:
if( $fix->ValArray( $_POST['add_order_items'] ) === -1 ) {
$errors['add_order_array'] = $erlink;
}
My eyes need to b
On Thu, 20 Sep 2007 12:58:28 -0600, you wrote:
>I am not sure what the heck is going with this but here is my problem.
>
>I am trying to validate the contents of an array, then determine if the
>errors are with the array or another form submitted variable.
>
>The problem is after the code validate
Wow this formatted badly. (new hotmail on Safari -- MS made FF not even render
well)
Anyway, are you sure you are reaching the code you want to reach?
Perhaps !== is overkill and maybe even wrong when you should use ==.
Same with the other === usage?
Try some
echo "HERE1\n";
echo "HERE2\n";
t
I am not sure what the heck is going with this but here is my problem.
I am trying to validate the contents of an array, then determine if the
errors are with the array or another form submitted variable.
The problem is after the code validates the array and other form
variables using an if state
4 matches
Mail list logo