<?php
if (isset($_POST['fraze']) && isset($_POST['mygtukas']))
{
echo "Užkoduota frazė: ".md5(md5($_POST['fraze']));
}
else
{
echo "<form action='".$_SERVER['PHP_SELF']."' method='post'>
Frazė: <input type='text' name='fraze' />
<input type='submit' name='mygtukas' value='Užkoduoti' />";
}
?>