Search the Community
Showing results for tags 'referer'.
-
Hi anyone, I was looking for a possibility to link to a .html file wich defines everythin what I want to put into the <head> tags. Just like linking to a stylesheet. Just to avoid adaptation in each file, when something changes in the head. If I could link to a file that describes the "head" I would only need to chang it in one file. Basically the same idea as for stylesheets actually. Does anybody have a good practice here?
- 4 replies
-
- heading tags
- head
- (and 6 more)
-
i tried to get back to referer page after editing records but it redirected to login page. // this is editprocess page...$refer = $_REQUEST['refer']; // this is stored on a hidden input field on edit.php, that is redirected from http://....../salesRecord.php?echo "<h3>Sales Record Successfully Updated</h3>";include($refer); //echo ing $refer here gives the desired referer page...after clicking 'edit' (submit button) it redirects to login.php page. even the login page should redirect to 'main.php' since it is logged in already (there is a code for it at the top of the page) .... any suggestion????
-
i'm trying to check before going to login page it should be checked if it is activated or not. if someone tries to access 'login.php' directly, it should be forwarded to 'chkactivation.php'. for this i tried-- // login.php$ref = $_SERVER['HTTP_REFERER'];if ($ref != 'http://localhost/ac/chapat/chkactivation.php') { die(header("location: chkactivation.php"));} but it says "This page can't be displayed" as if it didn't find the page (login.php) in spite of redirecting to 'chkactivation,php'. where m i wrong? please guide.. or suggest some better idea...