Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <body>
- <form method="post" action="
- <table border="1">
- <?php
- $f="/words.txt"; //definitions also included in this file
- $o=file($f);
- $len=count($o);
- $i=0;
- while( $i < 18){
- $rnum= rand(2,$len);
- $rword= $o[$rnum];
- $piece= explode(" ",$rword); //get just the word on the line
- if($i%3==0){
- echo "<tr>";
- }
- echo "<td id='$i' onclick='about()'>".$piece[2]."</td>";
- $i++;
- if($i%3==0){
- echo "</tr>";
- }
- }
- ?>
- </table>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement