Hi all,
I recently start medling with PHP and so far all I can say is WOW! I'm enjoying it imensely!
i have however come into an obstacle that my newbie brain is having a hard time getting around. The problem is as follows:
I'm programming a psicological experiment for a friend where participants have to look at various images and rate them. (Info is sent to a DB for later analysis)
The first requirement is that the images apear in a random order for each new participant. I created an array with all 21 images/forms (html files), shuffled that array and displayed the file in array[$i] ($i = 0). The participant rates the image, hits the submit button and then...
What i would like is that $_i increment and after displaying the 21 images, all data be evaluated and sent to the DB.
How could I go about doing this. The array and index part. (I'll get the the evaluation and sending to the DB later... 😉)
I've tried sessions, but for some reason it doesn't work.
If some kind soul could point me in the right direction I would really apreciate it. 😉
Cheers,
P.