<form action="form.source.php" method="POST"> <input type="text" size="30" name="mess" maxlength="30"> <input type="submit" value="送信"> </form> <? if( isset($_POST['mess']) ){ #テキストボックスの名前messの入力値受け取り $m = $_POST['mess']; #エスケープ解除 if(get_magic_quotes_gpc()) $m = stripslashes($m); #HTMLを無効化 $m = htmlspecialchars($m); #表示 print("<tt>"); print("---