0
I have three arrays received via POST:
[campo_habilita] => Array ( [0] => Habilitado
[1] => Habilitado
[2] => Habilitado )
[campo_nome] => Array ( [0] => Nome 1
[1] => Nome 2
[2] => Nome 3 )
[campo_nascimento] => Array ( [0] => 15-05-1990
[1] => 27-02-1983
[2] => 14-03-1987 )
I need to set some conditions (if) before entering the data in the database, however, I do not know how to mount the foreach integrating the three arrays, to test the submitted data. (I don’t know if this is the command to be used for that)
One of the conditions is:
- if (enable='enabled' and name=') = "show error";
Another condition is:
- if the (enable='enabled' field and (function TestaData(field birth)=false) = "show error";
Can you help me?
In this situation a is normal seems better, ai vc indexes the 3 arrays by the same Dice (
$i
) and makes the comparisons.– rray
like I ride this one for, rray?
– Luis