form validation with arrays
Posted: Mon Aug 11, 2003 10:32 am
I have a form which submits a array and I need to check if its empty or not. I'm trying to use the following code snippet but it does'nt work. discs_size is the array.
Code: Select all
<?php
IF (empty($_POST['discs_size']))
{
echo '<H3>Error: Click <a href="addtitle.php?action=1">here</a> to try again</H3>';
break;
}
?>