title: PHP Forward to next Page
body: <p>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).</p>
  
  <p>I know that you can use <br>
  <code> header('Location: <em>HERE YOURE LINK</em> '); </code><br>
  for sending you to the next page, but it doesn't work. <Br></p>
  
  <p>In my PHP file I have some basic stuff:<br>
  Request form, process data, INSERT INTO database....<BR></p>
  
  <p>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. <br>
  It keeps returning the error:<br>
  <code>Cannot modify header information - headers already sent by .... on line 17</code></p>
  
  <p>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.</p>
  
  <p>Thanks in advance!<Br>
  Milaan</p>