Thanks for all the help man this is tricky getting the following error
Parse error: parse error, unexpected T_STRING in. Ahh I see use the variable needs to be set the first time the user sees the page.
Thereafter if it hits 10 reset the variable to 0 and redirect the user so the process can continue all over again..
I did a var dump like you suggested above and looks like something is coming up null
array(1) { ["counter"]=> &NULL }
I'm off to barnes and nobles in a bit to grab a new php book.