environment variable to redirect user to referrer page
Posted: Wed Nov 25, 2009 1:01 pm
hi, i just wondered if i collect the http referrer using inside a variable or hidden field how can i use this to send the user to that page after some sort of validation, i.e login.
ps, the user may have been browsing the page without logging in but when he presses a link to add comment he needs to login so how do i send the user to that page after login if that makes sense, many thanks abu
Code: Select all
$_SERVER['HTTP_REFERER'];ps, the user may have been browsing the page without logging in but when he presses a link to add comment he needs to login so how do i send the user to that page after login if that makes sense, many thanks abu