Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <html>
- <head>
- <title>PHP trojkat</title>
- </head>
- <body>
- <form action="trojkat.php" method="POST">
- <input type="text" name="a" /></p>
- <input type="text" name="h" /></p>
- <?php
- if(isset($_POST['a']) and isset($_POST['h']))
- echo '<input type="text" name="pole" value='.$_POST['a']*$_POST['h'].' disabled /></p>';
- else
- echo '<input type="text" name="pole" value="wprowadź poprawne dane" disabled /></p>';
- ?>
- <input type="submit" value="oblicz"/></p>
- </form>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement