title: PHP header redirect after form submit (not working)
body: <p>The header redirect after form submit isn't working and I'd love some help here please (everything else is working fine)...</p>
  <pre><code>            &lt;?php
              require_once &quot;twoauth/autoload.php&quot;;
              use Abraham\TwitterOAuth\TwitterOAuth; 
              require(&quot;twconfig.php&quot;);     
              $connection = new TwitterOAuth(CONSUMER_KEY, CONSUMER_SECRET, ACCESS_TOKEN, ACCESS_TOKEN_SECRET);
              
              $status = $_POST['tweetText']; 
              $filepath = $_POST['uploadedFile'];
              $media1 = $connection-&gt;upload('media/upload', ['media' =&gt; $filepath]);
              $parameters = [
                  'status' =&gt; $status,
                  'media_ids' =&gt; implode(',', [$media1-&gt;media_id_string])
              ];
  
              if(isset($_POST['submitTweet'])) {
                  $post_tweets = $connection-&gt;post('statuses/update', $parameters);
                  header('Location: nextpage.php');
                  exit();
              }
          ?&gt;  
  </code></pre>
  <p>Additional Info:
  There aren't any errors and it doesn't crash.
  It just sends off the data and reloads the current form/page.
  It's a regular form submission, not AJAX.
  I also tried an inline javascript onsubmit window.location.href call, but that didn't work either.
  I had a look at the HTTP request/response and cannot see the word &quot;Location&quot; at all. There is &quot;URL&quot; in the summary section and &quot;Referrer&quot; in the request section, but that's it as far as location/URLs go.</p>