- 论坛徽章:
- 0
|
源代码是这样的:
- <html>
- <head>
- <title>Welcome to my site</title>
- <script language="JavaScript">
- function addInd()
- {
- if (1)
- alert('smart 真混蛋');
- }
- </script>
- </head>
- <!--==========开始BODY部分====================-->
- <body>
- <center><h1>Hello , good boy {$name}!</h1></center><br>
- <form name='f1'>
- <label name="ind">0</label><br>
- 输入想要增加的IND序号:<input type="text" size="4" name="ind">
- <button onclick="addInd()">增加</button>
- </form>
- </body>
- </html>
复制代码
服务器运行错误:
Fatal error: Smarty error: [in tpl.Index.html line 6]: syntax error: unidentified token ';' (Smarty_Compiler.class.php, line 1391) in E:\php5\PEAR\libs\Smarty\Smarty.class.php on line 1088
但是,单独把这个文件拿出来就没任何问题! |
|