echo <<<EOT
<div id="excel" >
<form action= " " method= "post" enctype= "multipart/form-data " name= "form1 ">
<input type= "file" name= "file">
<input type= "submit" name= "Submit" value= "提交 ">
</form>
</div>
<div id="excel" >
<form action= " " method= "post" enctype= "multipart/form-data " name= "form1 ">
<input type= "file" name= "file">
<input type= "submit" name= "Submit" value= "提交 ">
</form>
</div>
EOT;
1. 如果使用print <<<EOT的方式,发生以下错误提示:
Parse error: syntax error, unexpected T_SL in
请看看print <<<EOT这行代码,最后是不能有空格的,也就是print <<<EOT[直接换行],EOT后面有空格就会有上面的错误提示。
2. 如出现Parse error: syntax error, unexpected $end in错误,请检查模板结束是否加上了 ?>,或者留下一行空行。EOT;[直接换行]
3.以上代码要顶格写