title: DOMPDF not working
body: <p>I am trying to take some html from a <code>textarea</code> and convert it to a pdf.  I donwnloaded DOMPDF from <a href="https://github.com/dompdf/dompdf" rel="nofollow">https://github.com/dompdf/dompdf</a> and wrote the code below.  When I click submit I get this error: "Internal Server Error".  (my webhost doesn't tell me which line it's one)
  (the name of this file is test2.php)</p>
  
  <pre><code>&lt;?php
  if (isset($_POST['submit'])) {
  $content = $_POST['content'];
  if (empty($content)){
      $error = 'write something';
  }
  else {
      include_once( 'dompdf/dompdf_config.inc.php' );
      $dompdf = new DOMPDF();
      $dompdf-&gt;load_html($content);
      $dompdf-&gt;render();
      $dompdf-&gt;stream('example.pdf');
  }
  }
  
  
  ?&gt;
  &lt;!DOCTYPE html&gt;
  &lt;head&gt;
  
  &lt;/head&gt;
  &lt;body&gt;
  &lt;?php
  if(isset($error)){
  echo $error;
  }
  ?&gt;
  &lt;form method="post" action="test2.php"&gt;
  &lt;textarea name="content" id="content"&gt;hello world&lt;/textarea&gt;&lt;br&gt;
  &lt;input type="submit" name="submit" value='submit'&gt;
  &lt;/form&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>