I'm pretty new to PHP, and I'm designing a site that needs to do the following:
- Select randomly from a series of about 5 different background images
- Store the selected image name in a session variable (so that the user has the same background image on every page)
I'm pretty sure that I can setup it's selecting randomly from images and storing it in a session variable. The thing I can't figure out is how I should execute it most efficiently. Will it work to do a php file include of the php file that has the code? Also, I'm not sure how to make it so that the page pulls the session variable and sets that image as the background.
Any suggestions? Thanks,
- Josh