M0n5terBunny Posted October 14, 2011 Share Posted October 14, 2011 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 Quote Link to comment https://forums.phpfreaks.com/topic/249116-php-number-generator-with-timed-option/ Share on other sites More sharing options...
AyKay47 Posted October 14, 2011 Share Posted October 14, 2011 switch to javascript for this one.. Quote Link to comment https://forums.phpfreaks.com/topic/249116-php-number-generator-with-timed-option/#findComment-1279314 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.