Peter Lüstig: HIER DIE LÖSUNG!

Beitrag lesen

  
<html>  
 <head><title></title></head>  
  <body>  
   <input type="text" name="startZahl">  
   <input type="text" name="endZahl">  
  </body>  
</html>  

  
<?php  
$startWert = $_POST['startZahl'];  
$endWert = $_POST['endZahl'];  
  
for($i = $startWert; $i < $endWert; $i++)  
{  
 echo $i."<br />";  
}  
?>  

Ausgabe bei Startwert 1 und Endwert 9:

  
1  
2  
3  
4  
5  
6  
7  
8  
9