im starting to learn php, a little application im building needs to send visitors to specific pages based on if they have a preferance cookie and if so go to specific page based on which cookie.
so at one part of my application a visitor will be faced with three links, when a visitor clicks a link a cookie remebering the visitors preference will be sent so
Link1 = Prefcookie1
Link2 = Prefcookie2
Link3 = Prefcookie3
at another page it needs to
Check for any prefcookies
if no redirect to index1
If yes check which precookie
If prefcookie = prefcookie1 redirect to index
if prefcookie = prefcookie2 redirect to index1
if precookie = prefcookie3 redirect to index3
Or could somthing similar be achieved through htaccess?
any help greatly appreciated, its that last thing to complete this
PHP would work fine for this:
or so