<? include_once("/home/duane/translingo.org/includes/general.php"); $smarty->display('lheader.tpl'); if($_POST['text'] != "") { $str = recode("utf-8..html", $_POST['text']); echo "You sent:<br>".$_POST['text']."<br><br>Converted:<br>".$str."<br><Br><hr>\n"; } ?> <form method="post" action="/test.php" Accept-Charset="utf-8"> <textarea name="text" rows="4" cols="80"><?=$_POST['text']?></textarea> <input type="submit" name="update" value="show me!"> </form> <? $smarty->display('lfooter.tpl'); ?>