<html> <title>Random word generator</title><body><FIELDSET><form action="random.php" method="post">Characters to use <input type="text" name="tletters"/><br>Length of word <input type="text" name="tlength"/><br><input type="submit" name="submit" value="Generate"/></form></FIELDSET><?phpif(isset($_POST['tletters']) && isset($_POST['tlength'])){$chars = $_POST['tletters'];$size = $_POST['tlength'];echo "Generating random word with these characters - <br><b>" . $chars . "</b> and a length of <b>" . $size . "</b><br><br>";for($i=0;$i<$size;$i++){ echo "<b>" . substr($chars,rand(1,strlen($chars)),1) . "</b>";}}?>