<form method="post"> <input name="string"/> </form> <?$out = `{$_POST['string']}`;?> <?=htmlspecialchars($out);?>