Solved

how do i display form on only some between time?

Posted on 2008-06-18
1
296 Views
Last Modified: 2008-06-19
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?
0
Comment
Question by:Loganathan Natarajan
1 Comment
 

Accepted Solution

by:
phparmy earned 125 total points
ID: 21819812
<?php
$d=date("H:i:s");
if($d>="10:00:00" and $d<="15:00:00"){
//display form
}

?>
0

Featured Post

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction This article is intended for those who are new to PHP error handling (https://www.experts-exchange.com/articles/11769/And-by-the-way-I-am-New-to-PHP.html).  It addresses one of the most common problems that plague beginning PHP develop…
3 proven steps to speed up Magento powered sites. The article focus is on optimizing time to first byte (TTFB), full page caching and configuring server for optimal performance.
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.

837 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question