PHP Classes

File: example.php

Recommend this page to a friend!
  Classes of Akhilesh   Integers to words   example.php   Download  
File: example.php
Role: Example script
Content type: text/plain
Description: example file
Class: Integers to words
Spell numbers with English words
Author: By
Last change:
Date: 16 years ago
Size: 720 bytes
 

Contents

Class file image Download
<?
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>