SHARE
TWEET

Untitled

a guest Dec 10th, 2018 87 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php
  2. print '
  3. <!DOCTYPE HTML>
  4. <html lang="hr">
  5.         <head>
  6.                 <title>Programiranje web aplikacija</title>
  7.                 <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  8.                 <meta name="description" content="">
  9.                 <meta name="keywords" content="">
  10.                 <meta name="author" content="Jakov Bogdan">
  11.                 <meta name="viewport" content="width=device-width, initial-scale=1">
  12.                 <link rel="shortcut icon" type="image/x-icon" href="favicon.ico">
  13.         </head>
  14.     <body>';
  15.    
  16.     $_a=$_POST('a');
  17.     $_b=$_POST('b');
  18.     $_c=(3*$_a-$_b)/2;
  19.             print '
  20.             <div class="odlomak">
  21.                 <p class="vra">a='.$_a .'</p>
  22.                 <p>b='.$_b .'</p>
  23.                 <p>c=(3*'.$_a.'-'.$_b.')/2='.$_c.'</p>
  24.             </div>
  25.     </body>
  26. </html>;
  27. ?>
  28.  
  29. php_test (drugi folder)
  30.  
  31.  
  32.  
  33. <?php
  34. print '
  35. <!DOCTYPE HTML>
  36. <html lang="hr">
  37.         <head>
  38.                 <title>Programiranje web aplikacija</title>
  39.                 <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  40.                 <meta name="description" content="">
  41.                 <meta name="keywords" content="">
  42.                 <meta name="author" content="Jakov Bogdan">
  43.                 <meta name="viewport" content="width=device-width, initial-scale=1">
  44.                 <link rel="shortcut icon" type="image/x-icon" href="favicon.ico">
  45.         </head>
  46.     <body>
  47.         <h1>da Vincijev kod</h1>
  48.         <p>DV kod je triler Dana Browna.<br>
  49.         <a href="https://hr.wikipedia.org/Da_Vincijev_kod" target="_blank">Wikipedia</a></p>
  50.         <form action=''
  51.               method="POST">
  52.         <p><label for="a">Vrijednost a:</label>
  53.         <input type="number"
  54.                id="a"
  55.                name="a"></p>
  56.         <p><label for="b">Vrijednost b:</label>
  57.         <input type="number"
  58.                id="b"
  59.                name="b"></p>
  60.         <p><input type="submit" value="posalji"></p>
  61.         </form>
  62.     </body>
  63. </html>'
  64. ?>
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