| 插件名稱(chēng) | 表單系統(tǒng) V2.7 |
| 插件作者 | 迅睿官方團(tuán)隊(duì) |
| 最近更新 | 2026-01-19 14:32:48 |
| 修復(fù)無(wú)法在列表的右側(cè)顯示評(píng)論入口按鈕 |
一個(gè)頁(yè)面兩個(gè)表單,表單建立出來(lái)之后onclick="dr_ajax_submit和<input name="csrf_test_name" type="hidden" value="*****">都一樣導(dǎo)致能提交,但是后臺(tái)接收不到數(shù)據(jù),應(yīng)該怎么辦?
開(kāi)源是一種精神,但不是義務(wù),幫忙是情分,不幫也不要抱怨,建議大家多研究代碼、多閱讀代碼、多翻閱社區(qū)歷史問(wèn)題!
瀏覽器開(kāi)發(fā)模式看網(wǎng)絡(luò)請(qǐng)求記錄,看form數(shù)據(jù)有沒(méi)有提交上去
開(kāi)源是一種精神,但不是義務(wù),幫忙是情分,不幫也不要抱怨,建議大家多研究代碼、多閱讀代碼、多翻閱社區(qū)歷史問(wèn)題!
檢查一下提交按鈕點(diǎn)擊事件上面綁定的formid是不是沒(méi)改,導(dǎo)致提交的是另一個(gè)表單
method="post" name="myform" id="contactus" /index.php?s=form&c=contactus&m=post
點(diǎn)擊事件和formid都寫(xiě)成一樣的,會(huì)顯示

<form method="post" name="sgyefrom" id="sgyefrom">
<button type="button" onclick="dr_ajax_submit('域名?s=form&c=sgyefrom&m=post', 'myform', '2000', '域名?s=form&c=sgyefrom&m=post')" ">
<form method="post" name="contactus" id="contactus">
<button type="button" onclick="dr_ajax_submit('域名?s=form&c=contactus&m=post', 'myform', '2000', '域名?s=form&c=contactus&m=post')" ">
同一個(gè)頁(yè)面上面,兩個(gè)表單都是用的button?,F(xiàn)在這樣寫(xiě)都可以提交,但是在后臺(tái) name="contactus"這個(gè)表單拿不到數(shù)據(jù)。如果把上面的表單注釋了,就可以拿到數(shù)據(jù)。
<form method="post" name="sgyefrom" id="sgyefrom">
<button type="button" onclick="dr_ajax_submit('域名?s=form&c=sgyefrom&m=post', 'sgyefrom', '2000', '域名?s=form&c=sgyefrom&m=post')" ">
<form method="post" name="contactus" id="contactus">
<button type="button" onclick="dr_ajax_submit('域名?s=form&c=contactus&m=post', 'contactus', '2000', '域名?s=form&c=contactus&m=post')" ">
開(kāi)源是一種精神,但不是義務(wù),幫忙是情分,不幫也不要抱怨,建議大家多研究代碼、多閱讀代碼、多翻閱社區(qū)歷史問(wèn)題!
謝啦,這次可以了?。?! ??