byted

Conversor de milesegundos

Apr 27th, 2014
238
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.87 KB | None | 0 0
  1. //INDEX.HTML
  2. <html>
  3.     <h1>CONVERSOR DE MILISSEGUNDOS PAWN </h1>
  4.     <h2>Segundos</h2>
  5.     <form action="segundos.php" method="POST">
  6.     <input type="text" name="csegundos"/>
  7.     <input type="submit" value="Converter"/>
  8.     </form>
  9.     </br>
  10.     <h2>Minutos</h2>
  11.     <form action="minutos.php" method="POST">
  12.     <input type="text" name="cminutos"/>
  13.     <input type="submit" value="Converter"/>
  14.     </form>
  15.     </br>
  16.     <h2>Horas</h2>
  17.     <form action="horas.php" method="POST">
  18.     <input type="text" name="choras"/>
  19.     <input type="submit" value="Converter"/>
  20.     </form>
  21. </html>
  22. //SEGUNDOS.PHP
  23. <h1> Convertido =</h1>
  24. <?php
  25.     $result = $_POST["csegundos"] * 1000;
  26.     echo $result;
  27. ?>
  28. //MINUTOS.PHP
  29. <h1> Convertido =</h1>
  30. <?php
  31.     $result = $_POST["cminutos"] * 60000;
  32.     echo $result;
  33. ?>
  34. //HORAS
  35. <h1> Convertido =</h1>
  36. <?php
  37.     $result = $_POST["choras"] * 3600000;
  38.     echo $result;
  39. ?>
Advertisement
Add Comment
Please, Sign In to add comment