how do i display form on only some between time?

i have a form to be shown in between morning 10 am to evening 3 pm .. my server dates shows time 12:28  .., what is the best way to do?
LVL 36
Loganathan NatarajanLAMP DeveloperAsked:
Who is Participating?
 
phparmyCommented:
<?php
$d=date("H:i:s");
if($d>="10:00:00" and $d<="15:00:00"){
//display form
}

?>
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.