What is the way to define in PHP, that the user came from a specific page? Without "post" requests
I have an "add post" page when the user submits a post, on the next page, he can submit some more information. But when the user clicks on the "back" in the browser, he frees up the "add a post" form, and what I want is that the user can modify the information previously submitted, but only if he returns from this second page Presses
PHP $ _SESSION to store temporary data (especially if you can not use $ _POST) There is a great, easy improvement for you. You only need to clear the session value once, not on every page. I'm asking that I'm not 100% clear, but try to see some other values in $ _SERVER; Maybe you want what you want $ _ SERVER ['HTTP_REFERER'] - does not seem to work.
Maybe I can set some data in the second at $ _ session and leave it already on every second page .. but it does not look very smart like this.
Comments
Post a Comment