PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
Everah | Please use the appropriate bbCode tags when posting code in the forums.
hi,
if member isnot login, asking to login the page. but after login, the page isnot redirecting to previous page.
qumar wrote:hi,
if member isnot login, asking to login the page. but after login, the page isnot redirecting to previous page.
i am using the
<?php
$_SERVER['HTTP_REFERER']
?>
but i amnot getting the previous page. give some idea.
local working, but online not working. please help to me.
thanks,
qumar.
Some browsers don't give the Server the Referring Page, and you can even turn it off in Firefox.
Your Best Bet is to use $_GET Variables, or $_SESSION to store the last url they were at.
Whenever I want that to happen I always save the page + all get variables that are currently on every time they load a page into a session variable. That way, if they do something like login and you want to put them back to where they where at first, then you can just check the session and bam, your good to go.
Set Search Time - A google chrome extension. When you search only results from the past year (or set time period) are displayed. Helps tremendously when using new technologies to avoid outdated results.