迅睿CMS框架是一款PHP8高性能·簡單易用的CMS開源開發(fā)框架,基于MIT開源許可協(xié)議發(fā)布,免費且不限制商業(yè)使用,是免費開源的產品,以萬端互聯為設計理念,支持的微信公眾號、小程序、APP客戶端、移動端網站、PC網站等多終端式管理系統(tǒng)。
聯系官方銷售客服
1835022288
028-61286886
網站表單做的留言,提交后提示“系統(tǒng)錯誤”,審查元素報錯403、服務器的響應狀態(tài)為403 (),如圖:,本地沒有問題,是添加亞馬遜cdn的事嗎?還是什么原因呢?幫忙看下 謝謝了
域名:https://www.china-vote.com/
首頁、產品詳情頁、移動端底部導航都有留言,全部報錯系統(tǒng)錯誤、403
www.域名不要設置cdn
回復@迅??蚣芗夹g
這樣不行啊,谷歌競價他們推的就是www.china-vote.com, 不給3w設置cdn說不過去呀,還有別的法嗎?
cdn是不允許動態(tài)提交的,你只能用ifram件套一個外部form
回復@迅睿框架技術-陳澤希
“cdn是不允許動態(tài)提交的,你只能用ifram件套一個外部form”
這個能說的具體一些嗎?我好趕緊去改動,以下是現在的表單代碼:
<figure class="liuyan">
{php extract(dr_get_form_post_value('liuyan'))}
<form action="" class="form-horizontal" method="post" name="myform" id="myform2">
{dr_form_hidden()}
{$form}
<div class="fc-form-body ul">
<div class="form-group li" id="dr_row_title">
<label class="control-label col-md-2">
<span class="required" aria-required="true"></span>
<span class="f-red">* </span>Name
</label>
<div class="col-md-10">
<input class="form-control dr_required " type="text" name="data[title]" id="dr_title" value="" required="required"></div>
</div>
<div class="form-group li" id="dr_row_shouji">
<label class="control-label col-md-2">Phone number / Whatsapp number</label>
<div class="col-md-10"><input class="form-control " type="text" name="data[shouji]" id="dr_shouji" value=""></div>
<div class="form-group li" id="dr_row_youxiang">
<span class="f-red">* </span>Email
<input class="form-control dr_required email" type="email" name="data[youxiang]" id="dr_youxiang" pattern="^[a-z0-9]+([._\\-]*[a-z0-9])*@([a-z0-9]+[-a-z0-9]*[a-z0-9]+.){1,63}[a-z0-9]+$"
value="" required="required" />
<div class="form-group li" id="dr_row_guojia">
<label class="control-label col-md-2"><span class="required" aria-required="true"></span>Country / Region </label>
<div class="col-md-10"><input class="form-control dr_required " type="email" name="data[guojia]" id="dr_guojia"
value="" required="required"></div>
<div class="form-group li" id="dr_row_cpxz">
<label class="control-label col-md-2"><span class="required" aria-required="true"></span>Favorite product</label>
<select name="data[cpxz]" class="xz">
<option value="Mini Excavator" selected>Mini Excavator</option>
<option value="Backhoe Loader">Backhoe Loader</option>
<option value="Self Loading Concrete Mixer">Self Loading Concrete Mixer</option>
<option value="Rough Terrain Forklift">Rough Terrain Forklift</option>
</select>
<div class="form-group li" id="dr_row_nxw">
<label class="control-label col-md-2"><span class="required" aria-required="true"></span>How would you like us to
contact you?</label>
<select name="data[nxw]" class="xz">
<option value="phone" selected>Phone</option>
<option value="whatsapp">Whatsapp</option>
<option value="email">Email</option>
<div class="form-group li" id="dr_row_xinxi">
<label class="control-label col-md-2">Remark</label>
<textarea class="form-control xinxi" name="data[xinxi]" id="dr_xinxi"></textarea>
<!-- {if $is_post_code}
<div class="form-group">
<label class="control-label col-md-1">{dr_lang('Verify code')}</label>
<label>
<div class="form-recaptcha">
<div class="input-group">
<input class="yzm" type="text" class="form-control" name="code">
<div class="input-group-btn fc-code">
{dr_code(120, 35)}
{/if} -->
<div class="f-overf">
<button class="f-fr f-fff btn" type="button" onclick="dr_ajax_submit('{$post_url}', 'myform2', '2000', '{$rt_url}')">
Submissions
</button>
</form>
</figure>
1 打開index.php 關閉301
參考文檔:《www域名301》
2 綁定新域名到主站目錄,例如 php.china-vote.com
3 把四樓代碼不要了,換改成
<iframe src="https://php.china-vote.com/index.php?s=form&m=post&c=你的表單名稱" width="200" height="200"></iframe>
4 然后在新建對應的表單模板home/form/表單名稱_post.html,把四樓的diam復制進去
dr_ajax_submit('{$post_url}', 'myform2', '2000', '{$rt_url}') 改成 dr_ajax_submit('{dr_now_url()}', 'myform2', '2000', '{$rt_url}')
好的 我先試下 謝謝
完美的方法
回復@迅??蚣芗夹g-陳澤希
按你的流程操作完后,提交留言后審查元素報錯“
Uncaught ReferenceError: dr_ajax_submit is not defined
at HTMLButtonElement.onclick (index.php?s=form&m=post&c=liuyan:69)
”
地址:https://liuyan.china-vote.com/index.php?s=form&m=post&c=liuyan
是什么原因呢?
home/index.html的代碼:
<iframe src="https://liuyan.china-vote.com/index.php?s=form&m=post&c=liuyan" width="100%" height="560px"></iframe>
home/form/liuyan_post.html的代碼:
<input class="form-control dr_required email" type="email" name="data[youxiang]" id="dr_youxiang" pattern="^[a-z0-9]+([._\\-]*[a-z0-9])*@([a-z0-9]+[-a-z0-9]*[a-z0-9]+.){1,63}[a-z0-9]+$" value="" required="required" />
<div class="col-md-10"><input class="form-control dr_required " type="email" name="data[guojia]" id="dr_guojia" value="" required="required"></div>
<label class="control-label col-md-2"><span class="required" aria-required="true"></span>How would you like us to contact you?</label>
<button class="f-fr f-fff btn" type="button" onclick="dr_ajax_submit('{dr_now_url()}', 'myform2', '2000', '{$rt_url}')">
參考文檔:《前端模板JS類》 少了寫系統(tǒng)js庫
少了提交的js函數
好的,加上提交的js函數可以了;
但是網站上有5個表單留言呢,不加cdn的時候,建立一個表單,直接在每個表單html位置更改form標簽的id="myform1"名稱和提交按鈕button的onclick='myform1'名稱即可,
目前這種狀況只能是后臺建立5個表單嗎?有沒有簡單的方法呢?
謝謝了
這樣操作后,留言提交成功,后臺留言審核里面有留言內容,但是沒有郵箱提醒了
沒有郵箱提醒,外貿競價員不能實時收到客戶留言郵件啊
幫忙看下為什么用iframe引用網站表單后,郵箱收不到留言的郵件了呢?
郵箱提醒是配置的騰訊的
本地測試(沒有cdn)不用iframe引用的那些留言的郵箱提醒是正常的,唯獨用iframe標簽引用的那個沒有郵箱提醒,幫忙看下,什么原因呢?
線上測試(添加了亞馬遜cdn)用iframe標簽引用的那個留言后臺可以收到數據,但是郵箱收不到。
幫忙看下,謝謝了
后臺,插件,任務隊列,看看是否被運行了
這是后臺任務隊列里的截圖:
點擊日期今天的立即執(zhí)行后,郵箱還是沒有反應
大佬還是得給看看呀,郵箱提醒的個
把任務域名換一個不cdn的域名就行了
參考文檔:《設置自動任務隊列》
郵箱提醒已經解決,非常感謝。
新問題:
我設置了留言成功后,自動跳轉到一個新頁面(新窗口打開:https://www.china-vote.com/list-successfully.html 設置如圖),但是用了iframe標簽引用留言后,留言成功后跳轉的新頁面直接在iframe框內跳轉了,現象如錄制視頻:
如何留言成功后新窗口打開跳轉到新頁面,而不是在iframe框架內呢?有好的建議嗎,謝謝了
這個無解了,不讓他跳吧
回復@前端
哎,外貿競價員要求把谷歌統(tǒng)計代碼加到新跳轉的頁面里,實現詢盤統(tǒng)計(也就是每留言成功一次就算一個詢盤)
想多了,iframe不具備控制外部頁面功能,只能在iframe內部跳轉,除非你不做跳轉
回復@二開/定制/使用解答專家
嗯嗯,要求一環(huán)接著一環(huán)啊,支持亞馬遜cdn的話還不能動態(tài)提交,只能用iframe標簽引用實現
www.域名不要設置cdn
回復@迅??蚣芗夹g
這樣不行啊,谷歌競價他們推的就是www.china-vote.com, 不給3w設置cdn說不過去呀,還有別的法嗎?
cdn是不允許動態(tài)提交的,你只能用ifram件套一個外部form
回復@迅睿框架技術-陳澤希
“cdn是不允許動態(tài)提交的,你只能用ifram件套一個外部form”
這個能說的具體一些嗎?我好趕緊去改動,以下是現在的表單代碼:
<figure class="liuyan">
{php extract(dr_get_form_post_value('liuyan'))}
<form action="" class="form-horizontal" method="post" name="myform" id="myform2">
{dr_form_hidden()}
{$form}
<div class="fc-form-body ul">
<div class="form-group li" id="dr_row_title">
<label class="control-label col-md-2">
<span class="required" aria-required="true"></span>
<span class="f-red">* </span>Name
</label>
<div class="col-md-10">
<input class="form-control dr_required " type="text" name="data[title]" id="dr_title" value="" required="required"></div>
</div>
<div class="form-group li" id="dr_row_shouji">
<label class="control-label col-md-2">Phone number / Whatsapp number</label>
<div class="col-md-10"><input class="form-control " type="text" name="data[shouji]" id="dr_shouji" value=""></div>
</div>
<div class="form-group li" id="dr_row_youxiang">
<label class="control-label col-md-2">
<span class="required" aria-required="true"></span>
<span class="f-red">* </span>Email
</label>
<div class="col-md-10">
<input class="form-control dr_required email" type="email" name="data[youxiang]" id="dr_youxiang" pattern="^[a-z0-9]+([._\\-]*[a-z0-9])*@([a-z0-9]+[-a-z0-9]*[a-z0-9]+.){1,63}[a-z0-9]+$"
value="" required="required" />
</div>
</div>
<div class="form-group li" id="dr_row_guojia">
<label class="control-label col-md-2"><span class="required" aria-required="true"></span>Country / Region </label>
<div class="col-md-10"><input class="form-control dr_required " type="email" name="data[guojia]" id="dr_guojia"
value="" required="required"></div>
</div>
<div class="form-group li" id="dr_row_cpxz">
<label class="control-label col-md-2"><span class="required" aria-required="true"></span>Favorite product</label>
<div class="col-md-10">
<select name="data[cpxz]" class="xz">
<option value="Mini Excavator" selected>Mini Excavator</option>
<option value="Backhoe Loader">Backhoe Loader</option>
<option value="Self Loading Concrete Mixer">Self Loading Concrete Mixer</option>
<option value="Rough Terrain Forklift">Rough Terrain Forklift</option>
</select>
</div>
</div>
<div class="form-group li" id="dr_row_nxw">
<label class="control-label col-md-2"><span class="required" aria-required="true"></span>How would you like us to
contact you?</label>
<div class="col-md-10">
<select name="data[nxw]" class="xz">
<option value="phone" selected>Phone</option>
<option value="whatsapp">Whatsapp</option>
<option value="email">Email</option>
</select>
</div>
</div>
<div class="form-group li" id="dr_row_xinxi">
<label class="control-label col-md-2">Remark</label>
<div class="col-md-10">
<textarea class="form-control xinxi" name="data[xinxi]" id="dr_xinxi"></textarea>
</div>
</div>
<!-- {if $is_post_code}
<div class="form-group">
<label class="control-label col-md-1">{dr_lang('Verify code')}</label>
<div class="col-md-10">
<label>
<div class="form-recaptcha">
<div class="input-group">
<input class="yzm" type="text" class="form-control" name="code">
<div class="input-group-btn fc-code">
{dr_code(120, 35)}
</div>
</div>
</div>
</label>
</div>
</div>
{/if} -->
</div>
<div class="f-overf">
<button class="f-fr f-fff btn" type="button" onclick="dr_ajax_submit('{$post_url}', 'myform2', '2000', '{$rt_url}')">
Submissions
</button>
</div>
</form>
</figure>
1 打開index.php 關閉301
參考文檔:《www域名301》
2 綁定新域名到主站目錄,例如 php.china-vote.com
3 把四樓代碼不要了,換改成
4 然后在新建對應的表單模板home/form/表單名稱_post.html,把四樓的diam復制進去
回復@迅睿框架技術-陳澤希
好的 我先試下 謝謝
完美的方法
回復@迅??蚣芗夹g-陳澤希
按你的流程操作完后,提交留言后審查元素報錯“
Uncaught ReferenceError: dr_ajax_submit is not defined
at HTMLButtonElement.onclick (index.php?s=form&m=post&c=liuyan:69)
”
地址:https://liuyan.china-vote.com/index.php?s=form&m=post&c=liuyan
是什么原因呢?
home/index.html的代碼:
<figure class="liuyan">
<iframe src="https://liuyan.china-vote.com/index.php?s=form&m=post&c=liuyan" width="100%" height="560px"></iframe>
</figure>
home/form/liuyan_post.html的代碼:
{php extract(dr_get_form_post_value('liuyan'))}
<form action="" class="form-horizontal" method="post" name="myform" id="myform2">
{dr_form_hidden()}
{$form}
<div class="fc-form-body ul">
<div class="form-group li" id="dr_row_title">
<label class="control-label col-md-2">
<span class="required" aria-required="true"></span>
<span class="f-red">* </span>Name
</label>
<div class="col-md-10">
<input class="form-control dr_required " type="text" name="data[title]" id="dr_title" value="" required="required"></div>
</div>
<div class="form-group li" id="dr_row_shouji">
<label class="control-label col-md-2">Phone number / Whatsapp number</label>
<div class="col-md-10"><input class="form-control " type="text" name="data[shouji]" id="dr_shouji" value=""></div>
</div>
<div class="form-group li" id="dr_row_youxiang">
<label class="control-label col-md-2">
<span class="required" aria-required="true"></span>
<span class="f-red">* </span>Email
</label>
<div class="col-md-10">
<input class="form-control dr_required email" type="email" name="data[youxiang]" id="dr_youxiang" pattern="^[a-z0-9]+([._\\-]*[a-z0-9])*@([a-z0-9]+[-a-z0-9]*[a-z0-9]+.){1,63}[a-z0-9]+$" value="" required="required" />
</div>
</div>
<div class="form-group li" id="dr_row_guojia">
<label class="control-label col-md-2"><span class="required" aria-required="true"></span>Country / Region </label>
<div class="col-md-10"><input class="form-control dr_required " type="email" name="data[guojia]" id="dr_guojia" value="" required="required"></div>
</div>
<div class="form-group li" id="dr_row_cpxz">
<label class="control-label col-md-2"><span class="required" aria-required="true"></span>Favorite product</label>
<div class="col-md-10">
<select name="data[cpxz]" class="xz">
<option value="Mini Excavator" selected>Mini Excavator</option>
<option value="Backhoe Loader">Backhoe Loader</option>
<option value="Self Loading Concrete Mixer">Self Loading Concrete Mixer</option>
<option value="Rough Terrain Forklift">Rough Terrain Forklift</option>
</select>
</div>
</div>
<div class="form-group li" id="dr_row_nxw">
<label class="control-label col-md-2"><span class="required" aria-required="true"></span>How would you like us to contact you?</label>
<div class="col-md-10">
<select name="data[nxw]" class="xz">
<option value="phone" selected>Phone</option>
<option value="whatsapp">Whatsapp</option>
<option value="email">Email</option>
</select>
</div>
</div>
<div class="form-group li" id="dr_row_xinxi">
<label class="control-label col-md-2">Remark</label>
<div class="col-md-10">
<textarea class="form-control xinxi" name="data[xinxi]" id="dr_xinxi"></textarea>
</div>
</div>
<!-- {if $is_post_code}
<div class="form-group">
<label class="control-label col-md-1">{dr_lang('Verify code')}</label>
<div class="col-md-10">
<label>
<div class="form-recaptcha">
<div class="input-group">
<input class="yzm" type="text" class="form-control" name="code">
<div class="input-group-btn fc-code">
{dr_code(120, 35)}
</div>
</div>
</div>
</label>
</div>
</div>
{/if} -->
</div>
<div class="f-overf">
<button class="f-fr f-fff btn" type="button" onclick="dr_ajax_submit('{dr_now_url()}', 'myform2', '2000', '{$rt_url}')">
Submissions
</button>
</div>
</form>
Uncaught ReferenceError: dr_ajax_submit is not defined
參考文檔:《前端模板JS類》 少了寫系統(tǒng)js庫
少了提交的js函數
回復@迅??蚣芗夹g-陳澤希
好的,加上提交的js函數可以了;
但是網站上有5個表單留言呢,不加cdn的時候,建立一個表單,直接在每個表單html位置更改form標簽的id="myform1"名稱和提交按鈕button的onclick='myform1'名稱即可,
目前這種狀況只能是后臺建立5個表單嗎?有沒有簡單的方法呢?
謝謝了
回復@迅??蚣芗夹g-陳澤希
這樣操作后,留言提交成功,后臺留言審核里面有留言內容,但是沒有郵箱提醒了
回復@迅??蚣芗夹g-陳澤希
沒有郵箱提醒,外貿競價員不能實時收到客戶留言郵件啊
回復@迅??蚣芗夹g-陳澤希
幫忙看下為什么用iframe引用網站表單后,郵箱收不到留言的郵件了呢?
郵箱提醒是配置的騰訊的
本地測試(沒有cdn)不用iframe引用的那些留言的郵箱提醒是正常的,唯獨用iframe標簽引用的那個沒有郵箱提醒,幫忙看下,什么原因呢?
線上測試(添加了亞馬遜cdn)用iframe標簽引用的那個留言后臺可以收到數據,但是郵箱收不到。
幫忙看下,謝謝了
后臺,插件,任務隊列,看看是否被運行了
回復@迅??蚣芗夹g-陳澤希
這是后臺任務隊列里的截圖:
回復@迅??蚣芗夹g-陳澤希
點擊日期今天的立即執(zhí)行后,郵箱還是沒有反應
回復@迅??蚣芗夹g-陳澤希
大佬還是得給看看呀,郵箱提醒的個
把任務域名換一個不cdn的域名就行了
參考文檔:《設置自動任務隊列》
回復@迅睿框架技術-陳澤希
郵箱提醒已經解決,非常感謝。
新問題:
我設置了留言成功后,自動跳轉到一個新頁面(新窗口打開:https://www.china-vote.com/list-successfully.html 設置如圖),但是用了iframe標簽引用留言后,留言成功后跳轉的新頁面直接在iframe框內跳轉了,現象如錄制視頻:
如何留言成功后新窗口打開跳轉到新頁面,而不是在iframe框架內呢?有好的建議嗎,謝謝了
這個無解了,不讓他跳吧
回復@前端
回復@迅??蚣芗夹g-陳澤希
哎,外貿競價員要求把谷歌統(tǒng)計代碼加到新跳轉的頁面里,實現詢盤統(tǒng)計(也就是每留言成功一次就算一個詢盤)
想多了,iframe不具備控制外部頁面功能,只能在iframe內部跳轉,除非你不做跳轉
回復@二開/定制/使用解答專家
嗯嗯,要求一環(huán)接著一環(huán)啊,支持亞馬遜cdn的話還不能動態(tài)提交,只能用iframe標簽引用實現