Please login to start chat

ICT Solutions 2019-01-26 13:18:59
Category : php tutorials

Randomization in php

<?php
if(isset($_POST['roll'])){
 $rand = rand(000, 999);
 echo 'You rolled a '.$rand.'.';
}
?>

<form action = "rand.php" method = "POST">
<input type = "submit" name = "roll" value = "Roll a Dice">
</form>

Comments:

No comment to show.

Available Services
Download Android Application