i don't have working code for you. but i might give you an idea
the date() function has the ability to tell you the day of the week a date is. so 0 == sunday, 1 == monday, 2 == tuesday and so on.... up to 6 == saturday
if you use mktime() you can say
mktime ( 0, 0, 0, $Month, $day, $Year)
then use date() to see whether its either 5,6 or 0
this is possible code:
// $Month, $Day, $Year are from your form
// or input source.
$number = date("w",mktime ( 0, 0, 0, $Month, $Day, $Year));
loop($condition){
if($number == (5 || 6 || 0)){
echo "show date";
}
}
sources:
http://www.php.net/manual/en/function.date.php
http://www.php.net/manual/en/function.mktime.php