[eluser]coolgeek[/eluser]
[quote author="max123" date="1265985096"]Hi maria,
I found the reason. There are 2 echo statements inside a function above to the function that has redirect. I removed those echo statements. Now redirect works finely. Now the problem is how can I use those echo statements in the upper function. Do u have any idea?[/quote]
You can't redirect after you've already echoed something. HTTP headers were already sent in order to execute the echo statements. The redirect() function sends a redirect header.
You will need to store the statements in a session variable and present them from within the page you redirect to.