473,498 Members | 1,737 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Create a timer for php pages

1 New Member
I am creating an online etesting php application that use mysql data base. I used of about 25 php pages that post the data to the table in my sql data base. I want timer script that display on top of the each php page starting 00:25:00 and ended at 00:00:00. When i start first page then time should be started and when go to next page then time to be as running on first page. I need when time become 00:00:00 then page to redirect to the result page after alter the message as "your time expired"


plz give me detail about this i shall be very thank all of you
Mar 13 '11 #1
2 2868
dgreenhouse
250 Recognized Expert Contributor
You have to do this with JavaScript.

Look at http://www.w3schools.com/js/js_timing.asp to learn about timers. When the timer expires, you then would change the location of the current page to the next page.
Mar 13 '11 #2
code green
1,726 Recognized Expert Top Contributor
There is also refresh where content is the time in seconds
Expand|Select|Wrap|Line Numbers
  1. <meta http-equiv="refresh" content="120;url=http://path/to/new/page/"> 
  2.  
Or you can use php and headers
Expand|Select|Wrap|Line Numbers
  1. $refreshtime = 600; #10 minutes
  2. $header = 'refresh: '.$refreshtime.'; url=http://path/to/new/page.php';
  3. header($header);
But to display a continual timer you would still need javascript/ajax
Mar 14 '11 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

32
2117
by: Marco | last post by:
Ive been using front page but it starts to anoy me when i need to change in the source things that i cant change while in the "normal" mode, specialy when working with tables its soo hard to tell...
2
1821
by: Creat ASP Page Automatic | last post by:
Hi; I want to ask you something very important for me .. how can i Create daynamic pages or static pages Automatic .??????????!!! i have a problem with my website i want Create page asp...
14
1851
by: Dafydd | last post by:
I have the following Script in my web page reduce to two pages. <script> function details() { document.getElementById('details').style.visibility='visible';...
4
39904
by: ferg | last post by:
I've checked all the FAQs and help - spent a couple of hours on this now and it's really bugging me. I've got Moin 1.3.5 installed on IIS 5.0. I can view and edit pages without any problems, but...
1
1115
by: Blue Man | last post by:
what's the best methos to create static archive pages (like DotText) instead of dynamic with query? i mean like http://mydomain/archive/mytitle.aspx not http://mydomain/index.aspx?postid=13
1
1086
by: milmus tender | last post by:
Hi, is it possible to generate dynamicly new WebPart Pages? Each user of my application should have the possibility to save many different Views (WebPart Pages). Thanks, Milmus
5
4543
by: kennyjjohnson | last post by:
Hello, this is probably easy for a php pro... but I cant figure it out.. I have a directory of mp3 files named like this. Chevy_Car_Commercial.mp3 There are about 150 files. I am trying to...
4
8938
by: chanduma | last post by:
Hi, I know HTML tagging. But I want to create HTML pages in Hindi, Telugu and Tamil languages. My input is in pdf format. How can i extract the text and covert in html format? Can u give me a...
3
1166
by: sabrey9600 | last post by:
hello, can you give me ideas how to create an automated pages... for example, if the texts are too long that retrieved from database, then i ask to make the "next page" . such as: <prev 1...
3
22250
by: Jeff | last post by:
I done some looking on Google and could not come up with a way to dynamically create tab pages on a tab control. Does anyone have a link to any examples. Regards Jeff
0
7165
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7205
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
6887
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7379
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5462
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
4910
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4590
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
1419
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
656
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.