Advertisement
Guest User

Untitled

a guest
Oct 13th, 2010
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.37 KB | None | 0 0
  1. <?PHP
  2.  
  3. echo "
  4. <form action='tabel.php' method='POST'>
  5. Vaelg Tabel:<br><input type='text' name='tabel'><br>
  6. Hvornår skal den stoppe?<br><input type='text' name='stop'><br>
  7. <input type='submit' value='Se tabel'>
  8. </form>
  9. ";
  10.  
  11. $tabel = $_POST['tabel'];
  12. $stop = $_POST['stop'];
  13.  
  14. $i = $tabel;
  15. while($i < $stop)
  16. {
  17. echo $i . "<br>";
  18. $i= $i + $tabel;
  19. }
  20.  
  21.  
  22. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement