Re: Want to change story on homepage with browser refresh
PopcornCoder wrote:
> What would be the best way to do this? I have seen it done with arrays however i would need help with that as I am not too talented in that area thoughts?
You would have a repository of stories, be it database, array, file etc.
You would have a variable that defines which story from the above
repository to display.
Every time the page is requested you would assign this variable a value
based on the business rules you want to govern it. This may involve
somehow storing|passing the previous value to the next request, if the
rules dictate that knowledge of the previous value is required.
|