迅睿開源框架是一款PHP8高性能·簡單易用的PHP開源開發(fā)框架, 基于MIT開源許可協(xié)議發(fā)布,不限制商業(yè)使用,以多端互聯(lián)為設(shè)計(jì)理念, 支持的微信公眾號、小程序、APP客戶端、移動端網(wǎng)站、PC網(wǎng)站等多終端式管理系統(tǒng)。
業(yè)務(wù)經(jīng)理
微信掃描以上二維碼
028-61286886
在線咨詢
一個(gè)頁面兩個(gè)表單,表單建立出來之后onclick="dr_ajax_submit和<input name="csrf_test_name" type="hidden" value="*****">都一樣導(dǎo)致能提交,但是后臺接收不到數(shù)據(jù),應(yīng)該怎么辦?
開源是一種精神,但不是義務(wù),幫忙是情分,不幫也不要抱怨,建議大家多研究代碼、多閱讀代碼、多翻閱社區(qū)歷史問題!
瀏覽器開發(fā)模式看網(wǎng)絡(luò)請求記錄,看form數(shù)據(jù)有沒有提交上去
檢查一下提交按鈕點(diǎn)擊事件上面綁定的formid是不是沒改,導(dǎo)致提交的是另一個(gè)表單
method="post" name="myform" id="contactus" /index.php?s=form&c=contactus&m=post
點(diǎn)擊事件和formid都寫成一樣的,會顯示
<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è)頁面上面,兩個(gè)表單都是用的button?,F(xiàn)在這樣寫都可以提交,但是在后臺 name="contactus"這個(gè)表單拿不到數(shù)據(jù)。如果把上面的表單注釋了,就可以拿到數(shù)據(jù)。
<button type="button" onclick="dr_ajax_submit('域名?s=form&c=sgyefrom&m=post', 'sgyefrom', '2000', '域名?s=form&c=sgyefrom&m=post')" ">
<button type="button" onclick="dr_ajax_submit('域名?s=form&c=contactus&m=post', 'contactus', '2000', '域名?s=form&c=contactus&m=post')" ">
謝啦,這次可以了!?。???
開源是一種精神,但不是義務(wù),幫忙是情分,不幫也不要抱怨,建議大家多研究代碼、多閱讀代碼、多翻閱社區(qū)歷史問題!
瀏覽器開發(fā)模式看網(wǎng)絡(luò)請求記錄,看form數(shù)據(jù)有沒有提交上去
開源是一種精神,但不是義務(wù),幫忙是情分,不幫也不要抱怨,建議大家多研究代碼、多閱讀代碼、多翻閱社區(qū)歷史問題!
檢查一下提交按鈕點(diǎn)擊事件上面綁定的formid是不是沒改,導(dǎo)致提交的是另一個(gè)表單
method="post" name="myform" id="contactus" /index.php?s=form&c=contactus&m=post
點(diǎn)擊事件和formid都寫成一樣的,會顯示

<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è)頁面上面,兩個(gè)表單都是用的button?,F(xiàn)在這樣寫都可以提交,但是在后臺 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')" ">
開源是一種精神,但不是義務(wù),幫忙是情分,不幫也不要抱怨,建議大家多研究代碼、多閱讀代碼、多翻閱社區(qū)歷史問題!
謝啦,這次可以了!?。???