title: Generate an MPDF to PDF with HTML and PHP
body: <p>This the my code a CV that I want to create an MPDF with and underneath I have the MPDF code that is on another page. The content is appearing on the pdf but with php echo values when i want the actual php values instead</p>
  
  <pre><code>&lt;?php
              //Image upload
              $uploaddir = "images\\";
              $uploadfile = $uploaddir . $userTime . basename($_FILES['myimg']['name']); 
              move_uploaded_file($_FILES["myimg"]["tmp_name"], "$uploadfile");
              $_SESSION['myimg'] = $uploadfile;
  
              if(isset($_FILES['myimg'])){
                  $file = $_FILES['myimg']['name'];
                  //echo "" .$file;
                  //echo "&lt;img src='" . $file . "'&gt;";
                  echo '&lt;img src="' . $uploadfile . '" width="40%" height="40% "/&gt;'; 
              }
          ?&gt;
          &lt;p&gt;First Name&lt;br&gt;&lt;?php echo $fullName;?&gt;&lt;/p&gt; 
          &lt;p&gt;Email Address&lt;br&gt;&lt;?php echo $emailAddress;?&gt;&lt;/p&gt;
          &lt;p&gt;Phone Number&lt;br&gt;&lt;?php echo $phoneNumber;?&gt;&lt;/p&gt;`enter code here`
          &lt;p&gt;College&lt;br&gt;&lt;?php echo $theEducation;?&gt;&lt;/p&gt;
          &lt;p&gt;Course&lt;br&gt;&lt;?php echo $theCourse;?&gt;&lt;/p&gt;
  
  &lt;?php
  
  require_once __DIR__ . '/vendor/autoload.php';
  
      $mpdf = new \Mpdf\Mpdf();
  
      // $mpdf-&gt;WriteHTML(file_get_contents('build.php'));
  
      $mpdf-&gt;Output();
      //$mpdf-&gt;Output('filename.pdf','F');
  
  ?&gt;
  </code></pre>