Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- plik1:
- <?php
- if ($_SERVER['REQUEST_METHOD'] === 'GET') {
- if (isset($_GET['start']) && isset($_GET['end'])) {
- $start = trim($_GET['start']);
- $end = trim($_GET['end']);
- for ($i = $start; $i <= $end; $i++) {
- echo $i . '<br>';
- }
- } else {
- echo 'Nie ma wszystkich danych';
- }
- }
- plik2:
- <?php
- for ($i = 0; $i < 99; $i++) {
- $start = $i * 2;
- $end = $i * 3;
- echo "<a href='zadanie2.php?start=$start&end=$end'>Link $start do $end</a><br>";
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement