error_reporting(0);
if($_POST)
{
$ar = array('A' => 1,
'B' => 2,
'C' => 3,
'D' => 4,
'E' => 5,
'F' => 8,
'G' => 3,
'H' => 5,
'I' => 1,
'J' => 1,
'K' => 2,
'L' => 3,
'M' => 4,
'N' => 5,
'O' => 7,
'P' => 8,
'Q' => 1,
'R' => 2,
'S' => 3,
'T' => 4,
'U' => 6,
'V' => 6,
'W' => 6,
'X' => 7,
'Y' => 1,
'Z' => 7);
$str = $_POST['str'];
$str = strtoupper($str);
$len = strlen($str);
$numero = 0;
for($i=0; $i<$len; $i++)
{
$alpha = $str[$i];
$numero = $ar[$alpha] + $numero;
}
echo "NUMEROLOGY TOTAL IS: ". $numero;
}
?>
<html>
<body>
<form action="" method="post">
<input type="text" name="str" value="" />
<input type="submit" value="calculate" />
</form>