怎么提示了 Parse error: syntax error, unexpected 。。我在学习表单的时候,发现错误了。这是什么原因,谢谢。
<?php   <form name="form1" method="post" action="index_ok.php">
      <tr>
        <td width="61" height="33">        </td>
        <td width="81" align="center"><span class="style1">身份证号</span>:</td>
        <td width="132"><input name="IDcard" type="text" id="IDcard" size="18"></td>
        <td width="63" align="center"><input type="submit" name="Submit" value="检测"></td>
        <td width="55">&nbsp;</td>
      </tr>
  </form>?>

解决方案 »

  1.   

    从“<?php”直到遇到“?>”或者文件结束
    中间的代码要符合PHP语法规范
      

  2.   

    你的里面是 html代码 当然是不行的<?phpecho <<<html<form name="form1" method="post" action="index_ok.php">
      <tr>
      <td width="61" height="33"> </td>
      <td width="81" align="center"><span class="style1">身份证号</span>:</td>
      <td width="132"><input name="IDcard" type="text" id="IDcard" size="18"></td>
      <td width="63" align="center"><input type="submit" name="Submit" value="检测"></td>
      <td width="55">&nbsp;</td>
      </tr>
    </form>
    html
    ?>
      

  3.   

    中间的表单是html代码?怎么能直接出现在<?php  ?>中呢。
      

  4.   

    php 不能写表单的代码的吗?
      

  5.   


    用我告诉你的方法 或者用echo .当然不行!html是html php是php