I have a form that needs to insert a new record, upload a file, update another table, and send an email and then redirect the user
When I try to do all of these things I get an error about headers already sent.
The headers already set is coming from a method in the email script that is trying to modify the header,
Some of these transactions are dependent on the success of the insertion of data of and uploading of the file. then i update another table and send an email.