%PDF- %PDF-
Direktori : /var/www_old/ |
Current File : //var/www_old/faktor.php__b81eaf3 |
<?php if(isset($_GET['rychlost'])) { echo "<h1>" . round(($_GET['vaha'] * $_GET['rychlost']) / 1000, 2) . "</h1>"; } if(isset($_GET['rychlostms'])) { echo "<h1>" . round(($_GET['vaha'] * $_GET['rychlostms']) * 3.2808398950131 / 1000, 2) . "</h1>"; } if(isset($_GET['grains'])) { echo "<h1>" . (($_GET['grains'] / 15.4323584) * ($_GET['cena'] / $_GET['grams'])) . "</h1>"; echo "<h2>" . (($_GET['grams'] * 15.4323584) / ($_GET['grains'])) . " davek</h2>"; }?> <form action="faktor.php" method="get"> Vaha: <input type="text" <?php if(isset($_GET['vaha'])) echo "value=\"" . $_GET['vaha'] . "\""; ?> name="vaha"><br> Rychlost (ft/s): <input type="text" <?php if(isset($_GET['rychlost'])) echo "value=\"" . $_GET['rychlost'] . "\""; ?> name="rychlost"><br> Rychlost (m/s): <input type="text" <?php if(isset($_GET['rychlostms'])) echo "value=\"" . $_GET['rychlostms'] . "\""; ?> name="rychlostms"><br> <hr> Grains: <input type="text" <?php if(isset($_GET['grains'])) echo "value=\"" . $_GET['grains'] . "\""; ?> name="grains"><br> Cena: <input type="text" <?php if(isset($_GET['cena'])) echo "value=\"" . $_GET['cena'] . "\""; ?> name="cena"><br> Hmotnost: <input type="text" <?php if(isset($_GET['grams'])) echo "value=\"" . $_GET['grams'] . "\""; ?> name="grams"><br> <input type="submit" value="Odeslat"> </form>