title: how to redirect with php?
body: <p>I want my code once press submit to be redirected to another website.
  I want this to be done through a PHP script so it can be expanded.
  The problem is that when I test the code the PHP script is loaded in the browser with a blank page instead of redirecting it to the web I want.</p>
  <p>I leave you my current code:</p>
  <p>SIGN_IN.HTML</p>
  <pre><code>    &lt;!doctype html&gt;
  &lt;html lang=&quot;en&quot;&gt;
  &lt;head&gt;
      &lt;meta charset=&quot;utf-8&quot;&gt;
      &lt;meta name=&quot;viewport&quot; content=&quot;width=device-width, initial-scale=1, shrink-to-fit=no&quot;&gt;
      &lt;meta name=&quot;description&quot; content=&quot;&quot;&gt;
      &lt;meta name=&quot;author&quot; content=&quot;&quot;&gt;
      &lt;link rel=&quot;icon&quot; href=&quot;https://getbootstrap.com/docs/4.0/assets/img/favicons/favicon.ico&quot;&gt;
  
      &lt;title&gt;Signin Template for Bootstrap&lt;/title&gt;
  
      &lt;link rel=&quot;canonical&quot; href=&quot;https://getbootstrap.com/docs/4.0/examples/sign-in/&quot;&gt;
  
      &lt;!-- Bootstrap core CSS --&gt;
      &lt;link href=&quot;css/bootstrap.css&quot; rel=&quot;stylesheet&quot;&gt;
  
      &lt;!-- Custom styles for this template --&gt;
      &lt;link href=&quot;css/signin.css&quot; rel=&quot;stylesheet&quot;&gt;
  &lt;/head&gt;
  &lt;body class=&quot;text-center&quot;&gt;
      &lt;div class=&quot;form-signin&quot;&gt;
          &lt;form action=&quot;post.php&quot;&gt;
              &lt;img class=&quot;mb-4&quot; src=&quot;https://getbootstrap.com/docs/4.0/assets/brand/bootstrap-solid.svg&quot; alt=&quot;&quot; width=&quot;72&quot; height=&quot;72&quot;&gt;
              &lt;h1 class=&quot;h3 mb-3 font-weight-normal&quot;&gt;Please sign in&lt;/h1&gt;
              &lt;label for=&quot;inputEmail&quot; class=&quot;sr-only&quot;&gt;Email address&lt;/label&gt;
              &lt;input type=&quot;email&quot; id=&quot;inputEmail&quot; class=&quot;form-control&quot; placeholder=&quot;Email address&quot; required autofocus&gt;
              &lt;label for=&quot;inputPassword&quot; class=&quot;sr-only&quot;&gt;Password&lt;/label&gt;
              &lt;input type=&quot;password&quot; id=&quot;inputPassword&quot; class=&quot;form-control&quot; placeholder=&quot;Password&quot; required&gt;
              &lt;div class=&quot;checkbox mb-3&quot;&gt;
                  &lt;label&gt;
                      &lt;input type=&quot;checkbox&quot; value=&quot;remember-me&quot;&gt; Remember me
                  &lt;/label&gt;
              &lt;/div&gt;
              &lt;input class=&quot;btn btn-lg btn-primary btn-block&quot; type=&quot;submit&quot; value=&quot;Sign in&quot;/&gt;
              &lt;p class=&quot;mt-5 mb-3 text-muted&quot;&gt;&amp;copy; 2017-2018&lt;/p&gt;
          &lt;/form&gt;
      &lt;/div&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  <p>POST.PHP</p>
  <pre><code>    &lt;?php
      header (&quot;Location: https://getbootstrap.com/docs/4.0/examples/sign-in/&quot;);exit;
      ?&gt;
  </code></pre>
  <p>PD:As you can see, the page is an example website, I do not intend to carry out any cybercrime, just learn</p>
  <p>Thanks</p>