如何将数据发送到管理员并刷新页面 [英] How Do I Send Data To The Admin And Refresh The Page

查看:80
本文介绍了如何将数据发送到管理员并刷新页面的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,



我是PHP的新手,我想做以下事情:在我的网站中,用户可以添加博客,但我想要博客在发布之前首先转到管理员(管理员有权发布或取消发布博客)。

目前,博客显示在网站上,在管理视图中显示它尚未发布。



这是我现在的代码:



 header( 位置:http://www.arabrecycling.org/user/blogger/\"); 





我希望它可以做//重定向('admin / addBlogs',$ data)之类的东西但仍然刷新页面。这可能吗?

解决方案

数据)但仍然刷新页面。这可能吗?


Hello,

I am new to PHP and I would like to do the following: In my website, the user can add a blog but I would like the blog to go to admin first before it gets published ( The admin has the authority to publish or un-publish a blog).
At the moment, the blog appears on the website and in the admin view it shows that it has not been published yet.

this is my code now:

header("Location: http://www.arabrecycling.org/user/blogger/");




I would like it to do something like //redirect('admin/addBlogs',$data) but still refresh the page. Is that possible?

解决方案

data) but still refresh the page. Is that possible?


这篇关于如何将数据发送到管理员并刷新页面的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆