File size: 1.1Kb
<meta name="viewport" content="initial-scale=1.0, user-scalable=no">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black">
<META content="text/html; charset=utf-8" http-equiv="Content-Type">
<?
$ot = $_POST['ot'];
$do = $_POST['do'];
$result = rand($ot,$do); //результат
if (empty($ot)) $result = "Не указано \"От\" или \"До\"";
if (empty($do)) $result = "Не указано \"От\" или \"До\"";
?>
<html>
<title>Random Numbers by Avrong</title>
<table border="1" width="100%">
<tr>
<td>
Генератор случайных чисел
</td>
</tr>
<tr>
<td>
<form method="post">
От: <input name="ot" type="number" value="<?= $ot ?>"><br>
До: <input name="do" type="number" value="<?= $do ?>"><br>
<input type="submit" value="Генерировать">
</form>
</td>
</tr>
<tr>
<td>
Результат: <?= $result ?>
</td>
<tr>
<td>
Developed and Desighned by<br>
<a href="http://avrong.ru">Avrong Creative© 2014</a><br>
Version 1.0 Release
</td>
</tr>
</table>
</html>