problematic about this date for hours...
Posted: Tue Sep 06, 2005 1:36 am
i have a code here that generates an error whenever the the textboxes have values
the above is
then the forms code is
when i supply some data during runtime, the error message appears...any help will be much appreciated.
thanks in advance
the above is
Code: Select all
//check for project duration start date
if (empty($_POST['startmonth']) || empty($_POST['startday']) || empty($_POST['startyear']))
{
$sd = false;
$message .= 'You forgot to enter the project start date<br>';
}
else
{
$sd = $_POST['startyear']."-".$_POST['startmonth']."-".$_POST['startday'];
}
//other codes goes here...Code: Select all
<input name="startmonth" type="text" size="3"> -
<input name="startdate" type="text" size="3"> -
<input name="startyear" type="text" size="6">thanks in advance