Re: [PHP] Timer and submit button

2003-11-21 Thread David T-G
Frank -- ...and then Frank Tudor said... % % I am trying to create a timer tha would prevent someone from % clicking submit until the timer reaches zero. 1) Javascript is your only hope to disable clicking through, as suggested by the other responders. 2) It can still be defeated. How importan

Re: [PHP] Timer and submit button

2003-11-21 Thread RT
On Fri, 2003-11-21 at 10:51, Frank Tudor wrote: > I am trying to create a timer tha would prevent someone from > clicking submit until the timer reaches zero. > > THe reason is to keep an individual on a page for a certain > amount of time. > > Does anyone know the best way to do this? > > PHP?

Re: [PHP] Timer and submit button

2003-11-21 Thread CPT John W. Holmes
From: "Frank Tudor" <[EMAIL PROTECTED]> > I am trying to create a timer tha would prevent someone from > clicking submit until the timer reaches zero. JavaScript. ---John Holmes... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] timer problem

2003-02-22 Thread John W. Holmes
> Just a little curious. Is there any other way other than cron to do > this. Is it possible to run a PHP script in an endless loop and when the > clock strikes, run another script? Yeah, I think so, but it'd be worth the effort to just learn cron. You can use set_time_limit() to zero and run your

RE: [PHP] timer problem

2003-02-22 Thread Siddharth Hegde
22, 2003 9:40 PM > To: 'Michael Gaab'; [EMAIL PROTECTED] > Subject: RE: [PHP] timer problem > > > i want to automate some activities by date. on a certain date i want > to > > do > > some specific processing. the application is web based using apache. i &

RE: [PHP] timer problem

2003-02-22 Thread John W. Holmes
> i want to automate some activities by date. on a certain date i want to > do > some specific processing. the application is web based using apache. i > guess > i would need some way of calling the program daily to see if "today is the > day." thread/daemon? any suggestions appreciated. Use cr

Re: [PHP] timer on sessions?

2002-07-17 Thread Jas
I am not able to test from this machine so please tell me if I am right or wrong on this: $tmp = time(); $tme = time() - 5*60; session_register('tmp'); if ($tmp >= $tme) { echo 'Time has not reached 5 minutes, session still valid'; } else { echo 'Timer has reached 5 minutes, you will need

Re: [PHP] timer on sessions?

2002-07-17 Thread Asmodean
J> Not sure how to go about setting up a function to parse the date, hour, J> minutes, seconds, take the seconds and register them in a session var, then J> do a check on the session var (seconds) vs. the seconds var + 5*60 (or 5 J> minutes) to time out the session and force the user to log back i

Re: [PHP] Timer

2002-07-16 Thread Thomas \"omega\" Henning
How i know when 2 mins ellapsed? "Kevin Stone" <[EMAIL PROTECTED]> wrote in message 013f01c22cee$b3e17110$6501a8c0@kevin">news:013f01c22cee$b3e17110$6501a8c0@kevin... > Store a timestamp in a file. When the bot is activated retrieve the old > timestamp and calculate the difference between then an

Re: [PHP] timer in PHP

2001-04-11 Thread Plutarck
I'm guessing it's either for a Quiz script or an Auction script. If you want to make it easy on yourself, use a database to store the starting time (when the timer "starts") and what time the test/auction should end. When someome makes a submission, get the time stored in the database and see if

Re: [PHP] timer in PHP

2001-04-11 Thread Chris Lee
there is no sure way, but using cookies/sessions you can make something that will *work* . assign the user a session_id, every time the user makes an entry add a value to the db, session_id = $SessionID next_time = time() + 120 every time you make an entry, check to make sure that next_time <