I run my php program, update my database, and send some emails. After that, I want to return to my front page. The end of my program is:
If I leave out the "header" line, the emails are sent but I get a blank page that I have to back out of.
If I leave it in, the emails are still sent but I get error message:
Warning: Cannot modify header information - headers already sent by (output started at /home/xxxx/public_html/pdoinfoupdate2.php:2) in /home/xxxx/public_html/pdoinfoupdate2.php on line 87 (line 87 is the header line)
I've tried exit, die, and a hundred different things. Any help would be useful