001002003004005006007008009010011012013014015016017018019020021022023024025026
<?php // (2019.10.17, 차재복, Cha Jae Bok, http://www.ktword.co.kr) // 스타일 echo "<style> .trans_out { font-size:13px; } fieldset { border:1px gray solid; } </style>"; // PHP Heredocument 구문 $html = <<<EOD <form action='#' method='post' id='trans_form'> <fieldset><legend>변환전 텍스트</legend> <textarea rows='5' id='trans_text' class='trans_out' style='width:100%;'>'전자공학','수학','논리' 등 텍스트 변환 시험 중 ...</textarea> <br> <input type='submit' id='trans_submit'> </fieldset> </form> <fieldset><legend>변환후 텍스트 (서버 처리 결과)</legend> <pre id='result_text' class='trans_out'></pre> </fieldset> EOD; echo $html; ?>