I hope all you experts can help me. What would be the simplest and best way to accomplish the following: 1. Select 1 random visitor to my site per hour. 2. Redirect the selected visitor to a different page where they will fill out a form. How would you code this?
You wouldn't necessarily need to redirect them--- http://www.dynamicdrive.com/dynamicindex11/dhtmlad.htm You can choose frequency- time...etc... Just an option Ive played with.
if you want this to be per hour, some dynamic languages do not have a timer option. you would need a crontab to run and execute a script. better to implement something related to the number of visitors such as every 100 other visitor or so.
Thanks for the suggestion. I gave it a try and it doesn't seem to be working properly. Another drawback is that the pop-up blockers will get in the way. I do like this idea though. Does anyone out there know of a solution that I can implement?
You could use php/asp to redirect a user if they are the first visitor of a certain hour. A database would be needed to register that a user had been redirected for each hour so you have a row for each day with 24 columns and when a visitor arrives at 11.07am on 15th January you check the 11am column in the 15th January row. Then you only redirect a user if an entry does not exist in the appropriate hour column for that day. You would need to exclude spiders from this though.