SHARE
TWEET

PRVI ZADATAK

a guest Apr 23rd, 2019 66 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <html lang="en" dir="ltr">
  2.     <head>
  3.         <meta charset="utf-8">
  4.         <title>Zadatak 1</title>
  5.     </head>
  6.     <body>
  7.         <form method="get">
  8.             N: <input type="text" name="n">
  9.             <button type="submit" name="button">Ispisi</button>
  10.         </form>
  11.         <?php
  12.             if (!empty($_GET["n"])) {
  13.                 $n = $_GET["n"];
  14.                 for($i = 1; $i <= $n; $i++) {
  15.                     echo $i;
  16.                     echo "<br>";
  17.                 }
  18.             }
  19.         ?>
  20.     </body>
  21. </html>
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top