Advertisement
Guest User

Untitled

a guest
Jun 23rd, 2017
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.56 KB | None | 0 0
  1. <form method='GET' action='<?php echo $_SERVER[PHP_SELF];?>'>
  2. <input name='l1' type='text' value='<?php echo $_GET[l1];?>'><br>
  3. <input name='r1' type='text' value='<?php echo $_GET[r1];?>'><br>
  4. <input name='r2' type='text' value='<?php echo $_GET[r2];?>'><br>
  5. <input name='l2' type='text' value='<?php echo $_GET[l2];?>'><br>
  6. <input type='submit' value='view'><p>
  7. </form>
  8. <?php
  9. if (isset($_GET[l1]) && isset($_GET[r1]) && isset($_GET[r2]) && isset($_GET[l2])) {
  10. for ($x = $_GET[r1]; $x <= $_GET[r2]; $x += 1) echo "<img width='100%' src='$_GET[l1]$x$_GET[l2]'>";
  11. }
  12. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement