Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- print '
- <!DOCTYPE HTML>
- <html lang="hr">
- <head>
- <title>Programiranje web aplikacija</title>
- <meta http-equiv="content-type" content="text/html; charset=UTF-8">
- <meta name="description" content="">
- <meta name="keywords" content="">
- <meta name="author" content="Jakov Bogdan">
- <meta name="viewport" content="width=device-width, initial-scale=1">
- <link rel="shortcut icon" type="image/x-icon" href="favicon.ico">
- </head>
- <body>';
- $_a=$_POST('a');
- $_b=$_POST('b');
- $_c=(3*$_a-$_b)/2;
- print '
- <div class="odlomak">
- <p class="vra">a='.$_a .'</p>
- <p>b='.$_b .'</p>
- <p>c=(3*'.$_a.'-'.$_b.')/2='.$_c.'</p>
- </div>
- </body>
- </html>;
- ?>
- php_test (drugi folder)
- <?php
- print '
- <!DOCTYPE HTML>
- <html lang="hr">
- <head>
- <title>Programiranje web aplikacija</title>
- <meta http-equiv="content-type" content="text/html; charset=UTF-8">
- <meta name="description" content="">
- <meta name="keywords" content="">
- <meta name="author" content="Jakov Bogdan">
- <meta name="viewport" content="width=device-width, initial-scale=1">
- <link rel="shortcut icon" type="image/x-icon" href="favicon.ico">
- </head>
- <body>
- <h1>da Vincijev kod</h1>
- <p>DV kod je triler Dana Browna.<br>
- <a href="https://hr.wikipedia.org/Da_Vincijev_kod" target="_blank">Wikipedia</a></p>
- <form action=''
- method="POST">
- <p><label for="a">Vrijednost a:</label>
- <input type="number"
- id="a"
- name="a"></p>
- <p><label for="b">Vrijednost b:</label>
- <input type="number"
- id="b"
- name="b"></p>
- <p><input type="submit" value="posalji"></p>
- </form>
- </body>
- </html>'
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement