Login   Register  
PHP Classes
elePHPant
Icontem

File: mptest.php3

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Steve Woodbridge  >  DoubleMetaPhone  >  mptest.php3  >  Download  
File: mptest.php3
Role: Example script
Content type: text/plain
Description: Simple Web interface to DoubleMetaPhone
Class: DoubleMetaPhone
An improved "sounds like" algorithm.
Author: By
Last change:
Date: 13 years ago
Size: 457 bytes
 

Contents

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