abc - Thanks for that - it worked a treat.
Just one thing though I'm confused.
According to things I've found on the web, $count = $count + 1; should of worked.
Whats wrong with that and why does it only work with $count += 1; ??
Originally posted by thorpe
register globals is turned off, and no, there is nothing wrong with this setup. in fact it is recommended.
Yes I worked out that the register globals were turned off as every other site seemed to suggest which I had searched. The only problem is I originally tried abc's method and it didn't seem to work. Of course I didn't realise that $session and $SESSION were different and only one would work doh!
Oh, thorpe one other thing; register_globals is turned off on my live site too - yet the original version of the script (at the top of this thread) worked perfectly for some reason. Now am I paranoid or is there something else that could be affecting it?
Sorry for all the questions but I'm new to php and still trying to work out the basics!
-Turboz