I have a page which contains a form. I submit the information to the same page via post data. If a certain variable is set then I use the php header function to redirect to another page and I also pass a certain key variable using get data to the other page. Everything was working fine until I included 'Prototype' which is a javascript/ajax library. When I include this file (prototype.js), I get this warning:
"Warning: Cannot modify header information - headers already sent by (output started at C:\web programming\Omega III\scripts\js\prototype.js:114) in C:\web programming\Omega III\scripts\strength\add_workout.php on line 71"
I went to the file and looked at line 114 and this is what I get:
if (object === undefined) return 'undefined';
What does this have to do with sending headers? I don't think anything happens at that point since no function in that file is being called. Any suggestions?