Jump to content

Php NUmber Generator with timed option


M0n5terBunny

Recommended Posts

Hello all i was just wondering if there is a way to put in a submit button that will start the number generator and then after so many seconds it stops and then would display if the number is less then 5 it will shout win all i have is this and i have to refresh the page each time.

 

<?php
$numb = rand(0,100);
echo $numb;
if ( $numb < 5 ) { echo "win";}


?>

 

cheers guys/gals

Link to comment
https://forums.phpfreaks.com/topic/249116-php-number-generator-with-timed-option/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.