View Single Post
  #3 (permalink)  
Old Oct 4th, 2006, 19:53
ukgeoff ukgeoff is offline
Most Reputable Member
Join Date: Apr 2006
Location: Cornwall, UK
Posts: 1,310
Thanks: 0
Thanked 0 Times in 0 Posts
Re: If..Else statement help

All your 'exit' instruction are surplus to requirements and will stop things happening as you intended.

Also, because you are using redirection, you need to buffer the output that goes back to the browser until you have made you decision.

Do this by adding;
Code: Select all
ob_start();
at the very top of your page and make your last bit of php code;
Code: Select all
ob_end_flush();
Reply With Quote