title: Paste variables to $_GET
body: <p>I have two pages. First one we open with $_POST variables in its url, the second one opens inside first via iframe. Both php files, second is for html manipulation.</p>
  
  <p>Variables I got in $_POST are passed to iframe via $_GET:</p>
  
  <pre><code>echo '&lt;iframe src="index.php&amp;first=' . $first . '&amp;second=' . $second . '&amp;third=' . $third . '&amp;iframe=true"&gt;&lt;/iframe&gt;';
  </code></pre>
  
  <p><code>$first, $second, $third</code> variables has text inside them with some html and new lines (\n).</p>
  
  <p>The problem is, when data is passed to iframe by <code>$_GET</code>, all the new lines in variables disappear.</p>
  
  <p>Tryed to pass variables like <code>base64_encode($first)</code>, and then decode them by <code>base64_decode()</code>. It works buggy, some parts of text don't decode correctly, maybe because of bad symbols in iframe url.</p>
  
  <p>Also tryed to throw all the variables into single array, serialize it and then encode by base64 - this way server gives error 500 (it also gives the same error for 404). </p>
  
  <p>Please don't ask me why I did such structure of pages. It should not be changed.</p>
  
  <p><strong>What is the solution for this?</strong></p>