<?php
include("number2word.php");
if($_SERVER['REQUEST_METHOD'] == 'POST') {
$numStr = &new Number2Word($_POST['number']);
$number = $_POST['number'];
}
?>
<html>
<body>
<form name="frm" action="<?php echo $_SERVER['PHP_SELF']?>" method="post">
<table border="0" cellpadding="0" cellspacing="0">
<tr>
<td>Enter the number</td>
<td>:</td>
<td><input type="text" name="number" value="<?=$number?>"></td>
</tr>
<tr>
<td></td>
<td colspan="2"><input type="submit" value="Convert"></td>
</tr>
</table>
</form>
</body>
</html>
|