Jump to content

Countdown script


jatter
 Share

Recommended Posts

I'm trying to make a countdown script, but I'm having a problem with it. I want that the script refreshes itself every second and not the page.This is what I have till now.

<?phpsession_start();?><html><head><title> countdown </title></head><body><?php$start=40;while($start>=0)  {  echo "00:00:" . $start;  $start--;  }?>

I'm not sure if it's possible in php, but I'd appreciate it if you could find a solution in php.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...