title: issues with php form
body: <p>I am trying to complete a form.</p>
  
  <p>I want someone to go below and fill out info
  t1.html</p>
  
  <p>After they fill out info, they will see a Thankyou for submission
  (right now it goes to a php page of what they entered)</p>
  
  <p>Someone will get an email ('email address that the email goes to' in the form) with a link of a php page that has what was entered from the form.</p>
  
  <p>That person who gets the email will then accept or deny on that php page.</p>
  
  <p>I am missing how to generate the php page, so the person receiving the email will be able to access info of what was entered into the form. How do I do that?</p>
  
  <p>form</p>
  
  <pre><code>    &lt;form name="iform" method="post" action="html_form1.php" class="iform"&gt;
  
      &lt;ul&gt;
  
      &lt;li&gt;&lt;label for="SendingeWarrant"&gt;Sending  to:&lt;/label&gt;&lt;input class="itext"         type="text" name="SendingeWarrant" id="SendingeWarrant" /&gt;&lt;/li&gt;
      &lt;li class="iseparator"&gt;&amp;nbsp;&lt;/li&gt;
      &lt;li&gt;
      &lt;label for="Email"&gt;Email Address  that the email goes to:&lt;/label&gt;&lt;input   class="itext" type="text" name="Email" id="Email" /&gt;
      &lt;/li&gt;
      &lt;li class="iseparator"&gt;&amp;nbsp;&lt;/li&gt;
      &lt;li&gt;&lt;label&gt;&amp;nbsp;&lt;/label&gt;&lt;input type="Submit" name="Submit" value="Submit" /&gt;&lt;/li&gt;
      &lt;/ul&gt;&lt;/form&gt;
  </code></pre>
  
  <p>php</p>
  
  <pre><code>     &lt;?php
       if (!empty($_POST)) {
  
  
  $success = $error = false;
  
  
  $post = new stdClass;
  
  
  foreach ($_POST as $key =&gt; $val)
      $post-&gt;$key = trim(strip_tags($_POST[$key]));
  
  // Check for blank fields
  if ( empty($post-&gt;Email))
      $error = true;
  
  else {
  
      // Get this directory, to include other files from
      $dir = dirname(__FILE__);
  
      // Get the contents of the pdf into a variable for later
      ob_start();
      require_once($dir.'/pdf.php');
      $pdf_html = ob_get_contents();
      ob_end_clean();
  
      // Load the dompdf files
      require_once($dir.'/dompdf/dompdf_config.inc.php');
  
      $dompdf = new DOMPDF(); // Create new instance of dompdf
      $dompdf-&gt;load_html($pdf_html); // Load the html
      $dompdf-&gt;render(); // Parse the html, convert to PDF
      $pdf_content = $dompdf-&gt;output(); // Put contents of pdf into variable for   later
  
      // Get the contents of the HTML email into a variable for later
      ob_start();
      require_once($dir.'/html3.php');
      $html_message = ob_get_contents();
      ob_end_clean();
  
      // Load the SwiftMailer files
      require_once($dir.'/swift/swift_required.php');
  
      $mailer = new Swift_Mailer(new Swift_MailTransport()); // Create new instance of SwiftMailer
  
      $message = Swift_Message::newInstance()
                     -&gt;setSubject('eWarrant') // Message subject
                     -&gt;setTo(array($post-&gt;Email =&gt; $post- &gt;SendingeWarrant)) // Array of people to send to
                     -&gt;setFrom(array('no-reply@henschen.com' =&gt;  'eWarrant')) // From:
                     -&gt;setBody($html_message, 'text/html'); // Attach  that HTML message from earlier
  
  
      // Send the email, and show user message
      if ($mailer-&gt;send($message))
          $success = true;
      else
          $error = true;
  
    }
  
        }
        ?&gt;
  
  
       &lt;html&gt;
          &lt;head&gt;
  &lt;style&gt;
  body {font-family:Helvetica, Arial, sans-serif; font-size:10pt;}
  table {width:100%; border-collapse:collapse; border:1px solid #CCC;}
  td {padding:5px; border:1px solid #CCC; border-width:1px 0;}
  &lt;/style&gt;
      &lt;/head&gt;
         &lt;body&gt;
  
  &lt;h1&gt;&lt;/h1&gt;
  
  &lt;table&gt;
      &lt;tr&gt;
          &lt;td&gt;&lt;strong&gt;Name of person sending to:&lt;/strong&gt;&lt;/td&gt;
          &lt;td&gt;&lt;?php echo $_POST["SendingeWarrant"]; ?&gt;&lt;/td&gt;
          &lt;td&gt;&lt;strong&gt;Email being sent to:&lt;/strong&gt;&lt;/td&gt;
          &lt;td&gt;&lt;?php echo $_POST["Email"]; ?&gt;&lt;/td&gt;
      &lt;/tr&gt;
  &lt;/table&gt;
  
  &lt;p&gt;Approve / Deny&lt;/p&gt;
  
      &lt;/body&gt;
      &lt;/html&gt;
      &lt;/body&gt;
      &lt;/html&gt;
  </code></pre>
  
  <p>email php file</p>
  
  <pre><code>    &lt;html&gt;
      &lt;body&gt;
  
      &lt;p style="font-family:Helvetica, Arial, sans-serif;font-size:"x-small";"&gt;&lt;?php echo   $post-&gt;SendingeWarrant; ?&gt;&lt;/p&gt;
        &lt;p style="font-family:Helvetica, Arial, sans-serif;font-size:"x-small";"&gt;Click  link to approve or deny:  &lt;/p&gt;
  
      &lt;/body&gt;
        &lt;/html&gt;
  </code></pre>