Есть небольшой скриптик (файл в приложении):
CODE (htmlphp):
скопировать код в буфер обмена
скопировать код в буфер обмена
- <?php
- if($_POST['submit']) {
- $weight = '';
- $weight = strip_tags($_POST['weight']);
- $weight = floatval(str_replace(",", ".", $weight));
- echo ceil($weight*100);
- }?>
- <form action="test.php" method="post">
- <table cellspacing="5" cellpadding="0" border="0" valign="top" align="left">
- <tr>
- <td>
- <input type="text" name="weight" size="5" value="<?php echo $weight;?>">
- </td>
- <td>
- <input type="submit" value="Отправить" name="submit" >
- </td>
- </tr>
- </table>
- </form>