I have a form that, on submit, is going to a PHP file. Here the form is processed and sent to a MySQL database for storage. After this is done I want the page to, automatically, send me to the next page wich contains another form that has to be filled in (this continues a few times).
I know that you can use
header('Location: HERE YOURE LINK ');
for sending you to the next page, but it doesn't work.
In my PHP file I have some basic stuff:
Request form, process data, INSERT INTO database....
When I put the "header....."-code after these PHP commands it returns an error, and the same thing happens when I place it in front of the PHP commands.
It keeps returning the error:
Cannot modify header information - headers already sent by .... on line 17
I hope someone can help me, and that I have given you all the information you need to help me. I've been searching all day but still haven't found the solution.
Thanks in advance!
Milaan