title: Looking for PHP redirect code for a form mailer script
body: <p>I am using a form from "ReusableForms" and it is working fine but due to Bootstrap version conflicts, I cannot include the form in my Bootstrap 4.2.1 webpage, I have to just work with the form as a "on it's own" page which is fine but after the form is submitted and the success message shows up, I'd like the form to redirect to the home page of my site. Here is the code for the handler and for the html form:</p>
  
  <pre><code>&lt;form method="post" id="reused_form" &gt;
                      &lt;button class="button-primary" type="submit"&gt;Submit&lt;/button&gt;
                  &lt;/form&gt;
                  &lt;div id="success_message" style="display:none"&gt;
                      &lt;h3&gt;Submitted the form successfully!&lt;/h3&gt; 
                      &lt;p&gt; Eric will get back to you soon. &lt;/p&gt;
                  &lt;/div&gt;
                  &lt;div id="error_message" style="width:100%; height:100%; display:none; "&gt; &lt;h3&gt;Error&lt;/h3&gt; Sorry there was an error sending your form. &lt;/div&gt;
  </code></pre>
  
  <p>php code:</p>
  
  <pre><code>&lt;?php
  ini_set('display_errors', 1);
  ini_set('display_startup_errors', 1);
  error_reporting(E_ALL);
  /*
  Tested working with PHP5.4 and above (including PHP 7 )
  
   */
  require_once './vendor/autoload.php';
  
  use FormGuide\Handlx\FormHandler;
  
  
  $pp = new FormHandler(); 
  
  $validator = $pp-&gt;getValidator();
  $validator-&gt;fields(['Name','Email'])-&gt;areRequired()-&gt;maxLength(50);
  $validator-&gt;field('Email')-&gt;isEmail();
  $validator-&gt;field('Message')-&gt;maxLength(6000);
  
  
  $pp-&gt;requireReCaptcha();
  $pp-&gt;getReCaptcha()-&gt;initSecretKey('');
  
  $mailer = $pp-&gt;getMailer();
  
  //Using SMTP account
  $mailer-&gt;IsSMTP();
  $mailer-&gt;SMTPAuth   = true;
  $mailer-&gt;SMTPSecure = "tls";
  $mailer-&gt;Host       = "";
  $mailer-&gt;Username   = "";
  $mailer-&gt;Password   = "";
  
  $mailer-&gt;setFrom('', 'Camp Bay Form');
  
  
  $pp-&gt;sendEmailTo(''); // ← Your email here
  
  echo $pp-&gt;process($_POST);
  </code></pre>
  
  <p>I have been searching the internet trying other code in the handler, and I've tried the hidden redirect input and nothing is working, I assume cuz of how the handler code is written doesn't match others out there..</p>
  
  <p>I expect it is something real easy to be added in the handler code, I just need to know what to put in there to get the redirect to work!</p>