开发者

PHP redirection without header

开发者 https://www.devze.com 2023-04-07 15:17 出处:网络
I want to redirect a PHP page and post data to that page without using Header(\"Location:http://www.开发者_开发知识库example.com\").

I want to redirect a PHP page and post data to that page without using Header("Location:http://www.开发者_开发知识库example.com").

If anybody knows please help me. I tried some Zend functions also. Please explain anybody clearly.

Thanks


You cannot redirect to a POST.

You can redirect to a GET and header() us perfectly fine for that.


What is the matter of not using header('Location:.... ?

If you describe exactly what is the problem, then is easyer to get an answer.


If you are using Zend Framework you can redirect from one controller action to another action as such:

return $this->_forward("action", "controller", "module");


Well you could use AJAX code to post data to another page in the background and then update the current page with the posted data's results. That would do the job, though it very much depends what you want to do after submitting the data to your other page.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号