Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- echo "<form>
- podaj liczbe <input type='int' name='liczba'>
- <input type='submit' value='klik'>
- </form>
- <br>";
- @$liczba = $_GET ['liczba'];
- if ($liczba ==0)
- echo "Liczba jest rowna zero";
- elseif ($liczba <0)
- echo "liczba jest ujemna";
- elseif ($liczba > 0)
- echo "Liczba jest dodatnia";
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement