Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE html>
- <html>
- <head>
- <title>Zadanie </title>
- <link rel="stylesheet" type="text/css" href="style.css">
- <meta charset="utf-8">
- </head>
- <body>
- <div class="zadanie ">
- <form method="post">
- <h1>Podaj Liczbe<h1/><br/>
- <h2>A</h2>:<input type="text" name="a" value="0"/><br/>
- <h2>B</h2>:<input type="text" name="a" value="0"/><br/>
- <input type="submit" name="wyslij" value="Oblicz"/>
- </form>
- <?php
- $A = $_POST['A'];
- $B = $_POST['B'];
- if($b>$a)
- {
- echo 'Wynik zadanie:';
- }
- for(;$A<=$B;$A++)
- {
- echo $A.'<br>';
- }
- else{
- echo 'B nie moze byc miejsze od A';
- }
- ?>
- </div>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement