PHP redirection without header
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.
精彩评论