<?php if ( isset($_REQUEST['myh']) ) { $myh = $_REQUEST['myh']; $myw = $_REQUEST['myw']; $mybmi = $myw / $myh / $myh * 10000; $mymsg = <<<eof <div style="border: 1px solid gray;"> <p>你的BMI是: $mybmi</p></div> eof; } ?>