意外启动标签(正文)html

时间:2018-05-14 19:27:49

标签: php html header tags body-parser

嗨,当我运行整个项目代码时,我收到意外启动标记(正文)的错误。它在身体线上显示错误

?>
 <html>
 <body>
        <form method="GET" action="<?php echo $client->getRequestUri();?> ">
        <input type='submit' name='start' value='Start'/>
        </form>
 </body>
 </html>
 <?php

1 个答案:

答案 0 :(得分:0)

删除标签,除非您要回显出所有其他标签

 <html>
 <body>
        <form method="GET" action="<?php echo $client->getRequestUri();?> ">
        <input type='submit' name='start' value='Start'/>
        </form>
 </body>
 </html>

OR

<?php
echo "<html>
 <body>
        <form method='GET' action=".$client->getRequestUri().">
        <input type='submit' name='start' value='Start'/>
        </form>
 </body>
 </html>";
 ?>