设置条件的命令“ i” i' m重定向到另一页。 (PHP)
我正在使用PHP 我有一个评论页面的流程表格,当您单击提交时,您将被重定向到网站的主页 当我从我的processForm.php重定向到index.php时,我想在索引中看到一个警报,即“保存了您的评论!” (它需要我的索引页面了解我来自ProcessForm.php) 我该怎么做?
I'm using php
I have a process form for a comment page that when you click on submit, you will be redirected to the main page of the website
when I redirected to index.php from my processform.php, I want to see an alert in my index that "Your comment was saved!" (It needs that my index page understand that I'm coming from processform.php)
How can I do this?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您应该使用会议之类的东西。
在提交表格上设置会话。并在
index.php
上检查会话是否已与特殊键设置。然后显示您想要的警报。you should use something like sessions.
set session on submit form. and on
index.php
check if session has set with the special key. then show the alert that you want.