Hi, guys i want that people can't go the their previous page they visited @ my site.. What script i need to use for it and in what language?
Printable View
Hi, guys i want that people can't go the their previous page they visited @ my site.. What script i need to use for it and in what language?
You could set (in PHP) a session var, and just check it.
Learn some basic PHP first
^^, i know im not that good @ scripting i just copy sources and put some own things at it but yeah.. Im gonna search a Tutorial now or just post 1 if you found 1 ^^
U b dutch? ^^
Well me too, DUTCH tut: http://www.eriksweb.nl/artikel_show.php?aid=324
(better imo: http://www.phphulp.nl/php/howto/index.php?page=6)
Thnx Dutch is always easyer ^^ tyvm.
Eele good to see you in here to man. btw wrm heb je dat nodig xD?
Please post such messages either in the users profile or PM =]
Dit is een beetje offtopic jongens =P
window.history.back();
Lets keep it English, shall we?
What I would do, remember the previous page URL in a session, and make sure the new URL is not the same as the one in the session ;)
You could also do something with $_SERVER['HTTP_REFERER'], but it can't always be trusted.
HTTP_REFERER accounts for links from other sites; it doesn't account for the Back button in every browser though ;)
What Daevius said would work...
But the bast way IMO would be to create a page with like 5 lines of code:
.. Just make sure the pages are in order from first to last.PHP Code:<?php
session_start();
$_SESSION['nextPage']++;
$pages = 'page1.html,page2.html,page3.html,page4.html'; //Pages you want to link Separated by commas ;)
$allPages=explode(',',$pages);
include($allPages[$_SESSION['nextPage']]);
?>
This way, if they go back, they still get the next page >:P
evil huh?
Hope this helps ;)