Hi Guys
I'm using a form which sends data to a php file so that ti can be sent to a database. However some of the data passed are dates for the start, end of teh event and when sign ups expire. I want to stop the from data been sent to the database if the start date is after the end date and if the start date is after the expiry date. AS of yet I can't stop it been written to the database but it does redirect. Tthis is what i have so far for the if function
$sitename = $_POST[eName];
$title = $_POST[eName];
$sDate = $_POST[sDate];
$enDate = $_POST[enDate];
$exDate = $_POST[exDate];
$desc = $_POST[desc];
$pName = $_POST[eName];
if ($sDate>$enDate){
header( 'Location: sign_up_create.php' );
}
if ($sDate<$exDate){
header( 'Location: sign_up_create.php' );
}
Thanks in advance