Forum Moderators: coopster
i really don't know what's wrong with my code.
if ($_POST["RegHrsBox"] =="0.00" ¦¦ $_POST["RegHrsBox"] =="" ¦¦ $_POST["OtHrsBox"]=="0.00" ¦¦ $_POST["OtHrsBox"]=="")
{
$errors++;
$NewDataToggle="ZeroValue";
}if ($errors == 0)
{
//some db stuff here such as insert
}
thank you in advance
anyways, i've already found the answer to my 1st question.
if ($_POST["RegHrsBox"] =="0.00" ¦¦ $_POST["RegHrsBox"] =="")
{
if ($_POST["OtHrsBox"]=="0.00" ¦¦ $_POST["OtHrsBox"] =="")
{
$errors++;
$NewDataToggle="ZeroValue";
}
}
if ($errors == 0)
{
//some db stuff here such as insert
}