<html>
<head>
<title>DoubleMetaphone Test</title>
</head>
<body>
<h1>DoubleMetaphone Test</h1>
<?php
if (isset($in) && $in != "") {
require "./DoubleMetaPhone.php3";
$mp = new DoubleMetaPhone($in);
?>
<h2><? print $in; ?> yields '<? print $mp->primary; ?>' and '<? print $mp->secondary; ?>'</h2>
<?
}
?>
<form action="<? print $PHP_SELF; ?>" method=get>
<input type=text name=in>
<input type=submit>
</form>
</body>
</html>
|