form1-14 textarea<?php $command=$_POST["command"]; if ($command==null) { echo("<html> <body> <center> <form method=post action=$SELF_PHP> 留言版: <p> <textarea name='note' rows=3 cols=40 wrap=physical> </textarea> <p> <input type=submit name=command value=送出> <input type=reset name=command value=清除> </form> </center> </body> </html>"); } if ($command=="送出") { $note=$_POST["note"]; $note = str_replace("\n", "<br>", $note); echo("<html> <body> <center> 留言: <p> $note </center> </body> </html>"); } ?> |