<html> <title>Example</title> <body><form> <input type="text" name="num"> <br> <input type="submit" name="Convert" value="Convert"> <br> <?php include "NumToWord.class.php"; if($_REQUEST["Convert"] == "Convert") { $num = new NumberToWord($_REQUEST["num"]); echo $num->word; } ?></form> </body> </html>