Add exams from exam58 to exam98
This commit is contained in:
12
exam60/RandomGenerator.php
Normal file
12
exam60/RandomGenerator.php
Normal file
@@ -0,0 +1,12 @@
|
||||
<?php
|
||||
|
||||
if(isset($_POST['roll'])){
|
||||
$rand = rand(1,6);
|
||||
echo 'You rolled a ' .$rand;
|
||||
}
|
||||
|
||||
?>
|
||||
|
||||
<form action="RandomGenerator.php" method="POST">
|
||||
<input type="submit" name="roll" value="Roll dice">
|
||||
</form>
|
||||
Reference in New Issue
Block a user