Advertisement
Guest User

Untitled

a guest
May 26th, 2017
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  1. <?php
  2. $p = 1;
  3. $a = $_GET["phpinfo"];
  4. echo ' <div align="center"><form method="GET" name="input" action="?">
  5. Choose your way...
  6. <input type="text" name="phpinfo" />
  7. <input type="submit" value="Maniak" />
  8. </form></div>';
  9.  
  10. if($a == 1) {
  11. echo 'This FOR Way'.'<br/>';
  12. for($i = 1; $i<= 1000; $i++) {
  13. echo $i."<br/>"; }
  14. }elseif($a == 2);
  15. echo 'This WHILE Way'.'<br/>';
  16. while($p <= 1000) {
  17. $p++;
  18. echo $p."<br/>";
  19. }
  20. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement