Forum Moderators: coopster

Message Too Old, No Replies

redirect to a different url each time

         

johnd

2:42 pm on Sep 17, 2005 (gmt 0)

10+ Year Member



I need a script that would redirect a user that clicks on a php link to a different url from a list each time, i.e:

user1 => url1
user2 => url2
user3 => url3
user4 => url4

etc..

In other words, each time a php link is clicked the visitor is sent to the next url. Once the list is through, it starts from the beginning.

thanks for any suggestions.

johnd

6:55 pm on Sep 17, 2005 (gmt 0)

10+ Year Member



I thought it was an easy one?

jatar_k

6:51 am on Sep 18, 2005 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



store which one they went to last, maybe in a session or cookie

increment it by one, if the new value doesn't exist then reset it to the first num and start over