Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $site = $_GET["seite"];
- $inhalt = $_GET["inhalt"];
- if (!isset($site))
- {
- $site="index";
- }
- if ($site=="index")
- {
- echo '<form action="?seite=berechnen" method="POST">
- Zahl: <input type="text" name="zahl"><br />
- <input type="submit" value="Berechnen!"></form>';
- }
- $zahl = $_POST["zahl"];
- $counter = 0;
- if ($site=="berechnen")
- {
- if($zahl > 25)
- {
- $zahl = 25;
- }
- while($counter < $zahl)
- {
- $counter++;
- echo $counter.", ";
- }
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement