一、變量列表
表單提交地址:/e/enews/index.php
classid:[!--classid--]
id:[!--id--]
enews:AddPl
repid:0
username:用戶名輸入框
password:密碼輸入框
key:驗證碼輸入框
顯示驗證碼:<img src="/e/ShowKey?ecms">
nomember:匿名發表
saytext:評論內容
二、表單范例
<script>
function CheckPl(obj)
{
if(obj.saytext.value=="")
{
alert("您沒什么話要說嗎?");
obj.saytext.focus();
return false;
}
return true;
}
</script>
<table width="98%" border="0" align="center" cellpadding="3" cellspacing="1" id=saypl>
<form name=saypl method=POST action="/e/enews/index.php" onsubmit="return CheckPl(document.saypl)">
<tr>
<td height="25" bgcolor="#FFFFFF"> <div align="center">
<table width="100%" border="0" cellspacing="1" cellpadding="3">
<tr>
<td width="56%">用戶名:
<input name="username" type="text" id="username" size="12"></td>
<td width="44%">密碼:
<input name="password" type="password" id="password" size="12"></td>
</tr>
<tr>
<td>驗證碼:
<input name="key" type="text" id="key" size="6">
<img src="/e/ShowKey?ecms"> </td>
<td><input name="nomember" type="checkbox" id="nomember" value="1">
匿名發表</td>
</tr>
</table>
</div></td>
</tr>
<tr>
<td height="25" bgcolor="#FFFFFF"> <div align="center">
<textarea name="saytext" cols="56" rows="6" id="saytext"></textarea>
</div></td>
</tr>
<tr>
<td height="25" bgcolor="#FFFFFF"> <div align="center">
<input name="imageField" type="image" src="/e/data/images/postpl.gif" border="0">
<input name="id" type="hidden" value="[!--id--]">
<input name="classid" type="hidden" value="[!--classid--]">
<input name="enews" type="hidden" id="enews" value="AddPl">
<input name="repid
新聞熱點
疑難解答