the cannot modify headers error occurs if there is white space between closing php blocks "?>" and opening php code blocks "<?php"
the make sure there are no blank lines or blank spaces between code blocks, if you can find the problem, send a copy of your page so I can look at the code.


