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 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.. 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
Archived
This topic is now archived and is closed to further replies.