【问题标题】:How to redirect on the same page after submitting form in modal?以模态提交表单后如何在同一页面上重定向?
【发布时间】:2020-04-06 15:40:46
【问题描述】:

我已将一个文件名设为 index.php 当我首先打开它时,它将以模态形式显示一个表单。填写该表格后,当我单击提交时,我想在同一页面上重定向并将数据存储在数据库中。

【问题讨论】:

标签: database forms


【解决方案1】:

填写表格后很简单,只需包含此 php 代码即可:

<?php
header( "Location: index.php" );
exit ;
?>

有关更多信息,您可以使用下面的链接或在 cmets 中询问: https://www.thesitewizard.com/php/how-to-redirect-to-another-web-page.shtml

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2016-02-28
    • 2020-09-13
    • 1970-01-01
    • 2017-08-09
    • 1970-01-01
    相关资源
    最近更新 更多