[eluser]Kenan[/eluser]
[quote author="Tim Brownlaw" date="1405049595"]Time to do some debug... You need to test that you code is working...
For starters...
For those exits() not preceded by a header(...) add in some text - like exit('Hit the Exit on '.__LINE__) which should showif it's hitting one of those.
AND are you sure you don't want to use return; in those instances! Without seeing the rest of your code, I have no clue what's going on.
But start digging through what you have and see where it does get to ( using debug messages... even echo statements like "Hi I got here". __FILE__ . ' at '__LINE__ ) and track back to where it stops working.[/quote]
thanks a lot! the way with return can help