Location: PHPKode > scripts > Integers to words > integers-to-words/example.php
<?
include_once("wordsClass.php");
$obj = new intToWord();

if(isset($_REQUEST['submit']))
{
$valinput = $_REQUEST['intval'];
$result =  $obj->getAmountInWords($valinput);
}
?>
<form name="frm" action="" method="get">
<table width="100%%" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td width="35%" align="right" style="padding-right:25px"> Int Value </td>
    <td width="65%"><input type="text" name="intval" value="<?=$_GET['intval']?>" /></td>
  </tr>
  <tr>
    <td align="right" style="padding-right:25px">&nbsp;</td>
    <td><?php echo $result; ?></td>
  </tr>
  <tr>
    <td>&nbsp;</td>
    <td><input type="submit" name="submit" value="submit" /></td>
  </tr>
</table>
</form>
Return current item: Integers to words