As I understand, using the header() command can only be used before any output is sent to the browser. I'm having an issue with dreamweaver (using templates) where its not allowing me to insert code above the <html> start tag. To get around that, I stick the code in the <head></head> section. But, there redirection using header stops working. Is there another alternative to header().
I thought about just putting the php that I want to place above the <html> start tag in its own script file, so when the php code is done it just calls the page I was trying to add the code to. How do I easily pass, say an array of values, between scripts?
Thanks in advance.
I thought about just putting the php that I want to place above the <html> start tag in its own script file, so when the php code is done it just calls the page I was trying to add the code to. How do I easily pass, say an array of values, between scripts?
Thanks in advance.