迅睿CMS框架是一款PHP8高性能·簡單易用的CMS開源開發框架,基于MIT開源許可協議發布,免費且不限制商業使用,是免費開源的產品,以萬端互聯為設計理念,支持的微信公眾號、小程序、APP客戶端、移動端網站、PC網站等多終端式管理系統。
聯系官方銷售客服
1835022288
028-61286886
form表單提交我想調回原來的頁面,給個提示提交成功
用這個,注意提交按鈕的寫法最重要
參考文檔:《外部頁面調用網站表單提交項目》
回復@迅睿框架技術-劉和平
{php extract(dr_get_form_post_value('liuyan'))}
<form action="{$post_url}" method="post" id="myform" onsubmit="return addBook()">
{$myfield}
{$diyfield}
{$sysfield}
<input type="submit" id="tj" value="提交" />
<input type="reset" id="cz" value="重置" />
</form>
在后臺也設置了表單提交成功跳轉的url
沒有成功
這個是錯誤的寫法
我在一樓強調過你,注意提交按鈕的寫法,你對比我給你的文檔來寫
兩處錯誤,你對比我一樓給你的文檔
<form action="" method="post" id="myform">
{$form}
<div>
</div>
<button type="button" onclick="dr_ajax_submit('{$post_url}', 'myform', '2000', '{$rt_url}')" class="btn green"> <i class="fa fa-save"></i> 提交內容</button>
</form>點擊提交沒有反應
參考文檔:《前端模板JS類》
用這個,注意提交按鈕的寫法最重要
參考文檔:《外部頁面調用網站表單提交項目》
回復@迅睿框架技術-劉和平
{php extract(dr_get_form_post_value('liuyan'))}
<form action="{$post_url}" method="post" id="myform" onsubmit="return addBook()">
{$myfield}
{$diyfield}
{$sysfield}
<input type="submit" id="tj" value="提交" />
<input type="reset" id="cz" value="重置" />
</form>
在后臺也設置了表單提交成功跳轉的url
沒有成功
這個是錯誤的寫法
我在一樓強調過你,注意提交按鈕的寫法,你對比我給你的文檔來寫
兩處錯誤,你對比我一樓給你的文檔
{php extract(dr_get_form_post_value('liuyan'))}
<form action="" method="post" id="myform">
{$form}
<div>
{$myfield}
{$diyfield}
{$sysfield}
</div>
<button type="button" onclick="dr_ajax_submit('{$post_url}', 'myform', '2000', '{$rt_url}')" class="btn green"> <i class="fa fa-save"></i> 提交內容</button>
<input type="reset" id="cz" value="重置" />
</form>
點擊提交沒有反應
參考文檔:《前端模板JS類》