now....select form help
Posted: Tue Jun 28, 2005 4:00 am
i am not really sure about this code if this will write correctly in my db
the idea is that i have three options in my dropdown list, when the user selects the a category, it will write to the db the category he selects, and if the user don't select any...he will be prompted to select at least one...
Code: Select all
//check for category of organization
if (($_POST['category1'] > 0) OR ($_POST['category2'] > 0) OR ($_POST['category3']) >0)
{
$c = true;
}
else
{
$c = false;
$message .= 'Please select at least 1 category<br>';
}