聯(lián)系官方銷售客服
1835022288
028-61286886
網(wǎng)站表單做的留言,提交后提示“系統(tǒng)錯(cuò)誤”,審查元素報(bào)錯(cuò)403、服務(wù)器的響應(yīng)狀態(tài)為403 (),如圖:,本地沒有問題,是添加亞馬遜cdn的事嗎?還是什么原因呢?幫忙看下 謝謝了
域名:https://www.china-vote.com/
首頁、產(chǎn)品詳情頁、移動端底部導(dǎo)航都有留言,全部報(bào)錯(cuò)系統(tǒng)錯(cuò)誤、403
www.域名不要設(shè)置cdn
回復(fù)@迅睿框架技術(shù)
這樣不行啊,谷歌競價(jià)他們推的就是www.china-vote.com, 不給3w設(shè)置cdn說不過去呀,還有別的法嗎?
cdn是不允許動態(tài)提交的,你只能用ifram件套一個(gè)外部form
回復(fù)@迅睿框架技術(shù)-陳澤希
“cdn是不允許動態(tài)提交的,你只能用ifram件套一個(gè)外部form”
這個(gè)能說的具體一些嗎?我好趕緊去改動,以下是現(xiàn)在的表單代碼:
<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 關(guān)閉301
參考文檔:《www域名301》
2 綁定新域名到主站目錄,例如 php.china-vote.com
3 把四樓代碼不要了,換改成
4 然后在新建對應(yīng)的表單模板home/form/表單名稱_post.html,把四樓的diam復(fù)制進(jìn)去
回復(fù)@迅睿框架技術(shù)-陳澤希
好的 我先試下 謝謝
完美的方法
回復(fù)@迅睿框架技術(shù)-陳澤希
按你的流程操作完后,提交留言后審查元素報(bào)錯(cuò)“
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函數(shù)
回復(fù)@迅睿框架技術(shù)-陳澤希
好的,加上提交的js函數(shù)可以了;
但是網(wǎng)站上有5個(gè)表單留言呢,不加cdn的時(shí)候,建立一個(gè)表單,直接在每個(gè)表單html位置更改form標(biāo)簽的id="myform1"名稱和提交按鈕button的onclick='myform1'名稱即可,
目前這種狀況只能是后臺建立5個(gè)表單嗎?有沒有簡單的方法呢?
謝謝了
回復(fù)@迅睿框架技術(shù)-陳澤希
這樣操作后,留言提交成功,后臺留言審核里面有留言內(nèi)容,但是沒有郵箱提醒了
回復(fù)@迅睿框架技術(shù)-陳澤希
沒有郵箱提醒,外貿(mào)競價(jià)員不能實(shí)時(shí)收到客戶留言郵件啊
回復(fù)@迅睿框架技術(shù)-陳澤希
幫忙看下為什么用iframe引用網(wǎng)站表單后,郵箱收不到留言的郵件了呢?
郵箱提醒是配置的騰訊的
本地測試(沒有cdn)不用iframe引用的那些留言的郵箱提醒是正常的,唯獨(dú)用iframe標(biāo)簽引用的那個(gè)沒有郵箱提醒,幫忙看下,什么原因呢?
線上測試(添加了亞馬遜cdn)用iframe標(biāo)簽引用的那個(gè)留言后臺可以收到數(shù)據(jù),但是郵箱收不到。
幫忙看下,謝謝了
后臺,插件,任務(wù)隊(duì)列,看看是否被運(yùn)行了
回復(fù)@迅睿框架技術(shù)-陳澤希
這是后臺任務(wù)隊(duì)列里的截圖:
回復(fù)@迅睿框架技術(shù)-陳澤希
點(diǎn)擊日期今天的立即執(zhí)行后,郵箱還是沒有反應(yīng)
回復(fù)@迅睿框架技術(shù)-陳澤希
大佬還是得給看看呀,郵箱提醒的個(gè)
把任務(wù)域名換一個(gè)不cdn的域名就行了
參考文檔:《設(shè)置自動任務(wù)隊(duì)列》
回復(fù)@迅睿框架技術(shù)-陳澤希
郵箱提醒已經(jīng)解決,非常感謝。
新問題:
我設(shè)置了留言成功后,自動跳轉(zhuǎn)到一個(gè)新頁面(新窗口打開:https://www.china-vote.com/list-successfully.html 設(shè)置如圖),但是用了iframe標(biāo)簽引用留言后,留言成功后跳轉(zhuǎn)的新頁面直接在iframe框內(nèi)跳轉(zhuǎn)了,現(xiàn)象如錄制視頻:
如何留言成功后新窗口打開跳轉(zhuǎn)到新頁面,而不是在iframe框架內(nèi)呢?有好的建議嗎,謝謝了
這個(gè)無解了,不讓他跳吧
回復(fù)@前端
回復(fù)@迅睿框架技術(shù)-陳澤希
哎,外貿(mào)競價(jià)員要求把谷歌統(tǒng)計(jì)代碼加到新跳轉(zhuǎn)的頁面里,實(shí)現(xiàn)詢盤統(tǒng)計(jì)(也就是每留言成功一次就算一個(gè)詢盤)
想多了,iframe不具備控制外部頁面功能,只能在iframe內(nèi)部跳轉(zhuǎn),除非你不做跳轉(zhuǎn)
回復(fù)@二開/定制/使用解答專家
嗯嗯,要求一環(huán)接著一環(huán)啊,支持亞馬遜cdn的話還不能動態(tài)提交,只能用iframe標(biāo)簽引用實(shí)現(xiàn)