After successful logon, the system returns to the original page and maintains data. when a user post or comments without logon, click submit to go to the logon registration page. & nbsp; how can I return to the original post page & nbsp; and keep the post content & nbsp; ------ solution ------------------ use $ _ SERVER [HTTP_REFERER] & nbsp; returns the original page and keeps the data after successful logon.
When a user posts a post or comments without logon, click submit to go to the logon registration page.
How can I return to the original post page after logging on or registering successfully and keep the post content?
------ Solution --------------------
Use $ _ SERVER ['http _ referer'] to obtain the source address. After successful login, you will write user information into the session. Then use the returned address
$ _ SERVER ['http _ referer.