Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $words = array("Appel"=>"","Armen"=>"","Aders"=>"","Boten"=>"","Boven"=>"","Breed"=>"","Conus"=>"","Cadet"=>"","Clown"=>"");
- $a=array_rand($words,1);
- $b=print_r($a);
- $first= substr($a, -5, -4);
- echo("<br/>The word contains 5 letters.<br/>");
- ?>
- <html>
- <head>
- <title>Lingo</title>
- </head>
- <body>
- <?php
- echo("<br/>Give it a try (5):");
- ?>
- <form action="output.php" method="get">
- <input type='text' name='input' id='input' value='<?php echo($first)?>' maxlength='5'>
- <input type='submit' value='Guess'>
- </form>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment