im trying to encrypt stuff from a text area in a form and then echo that text in another text area.
<?php
$text = md5($_POST['text']);
if (!isset($_POST['submit']))
{
echo '
<form action="" method="POST">
encrypt: <textarea name="text" cols="50" rows="5" id="text"></textarea><br>
<input type="submit" name="submit" value="submit">
</form>
';
}
else
{
echo '<textarea cols="50" rows="5">$text</textarea>';
}
?>