請(qǐng)問一下前端提交的表單會(huì)自動(dòng)過濾危險(xiǎn)值嗎?如script,alert等等。
還有網(wǎng)站搜索值會(huì)自動(dòng)過濾嗎?如script,alert等等。
<form class="search-form" action="/index.php" method="get">
<input type="hidden" name="s" value="news">
<input type="hidden" name="c" value="search">
<table>
<tr>
<td ><input type="text" name="keyword" class="input_t" autocomplete="off" value="請(qǐng)輸入您要搜索的關(guān)鍵詞" onfocus="if(this.value=='請(qǐng)輸入您要搜索的關(guān)鍵詞'){this.value=''}" onblur="if(this.value==''){this.value='請(qǐng)輸入您要搜索的關(guān)鍵詞'}"/></td>
<td >
<input type="image" class="button fl btn input_b" src="{THEME_PATH}default/home/picture/input_an.jpg">
</td>
</tr>
</table>
</form>
插件版權(quán):官方插件
插件名稱:全局網(wǎng)站表單
會(huì)的,你可以試一試
開源是一種精神,但不是義務(wù),幫忙是情分,不幫也不要抱怨,建議大家多研究代碼、多閱讀代碼、多翻閱社區(qū)歷史問題!