How to validate forms in an array?
Posted: Sat Aug 21, 2010 7:16 am
Hi
How do I validate multiple forms in an array?
I know the first step is to store forms in an array.
Next step is to loop
This is where Im lost
How do i cycle through the array checking for an empty value, then take whatever form the empty value is and display it?
How do I validate multiple forms in an array?
I know the first step is to store forms in an array.
Code: Select all
$array = array($_POST['name'], $_POST['age'], $_POST['date'],$_POST['number']);This is where Im lost
How do i cycle through the array checking for an empty value, then take whatever form the empty value is and display it?