Hi I am sending a attachment in the end of the code I want to redirect on another page it is showing error. Neither I can redirect nor I can print something. Please give me a solution .
You can only re-direct if you have not already sent any headers out already on the page containing the re-direct.
That means ...
No <!DOCTYPE stuff No HTML No echo's or prints