title: This page isn’t working HTTP ERROR 500
body: <p>I am trying to use a php post method in my  project but I don't know why it isn't working.</p>
  
  <p>Basically I have 2 pages: <code>index.php</code> and <code>data.php</code></p>
  
  <p>From <code>index.php</code> a php form is there through which one can enter his details and click submit , the other page data.php should retrieve it but it isn't doing so.I'm getting error </p>
  
  <blockquote>
    <p>This page isn't working ... HTTP ERROR 500</p>
  </blockquote>
  
  <p><strong>index.php</strong></p>
  
  <pre><code>&lt;html&gt;
  &lt;body&gt;
      &lt;form action="data.php" method="post"&gt;
          Enter your tt: &lt;input type="text" name="token"&gt;&lt;br&gt;
          &lt;input type="submit"&gt;
      &lt;/form&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p><a href="http://jsfiddle.net/67wzzqpc/" rel="nofollow noreferrer">JsFiddle Link</a></p>
  
  <p><strong>data.php</strong></p>
  
  <pre><code>&lt;?php
  
  if(isset($_POST['token'])){
      $abc = explode('token=',$_POST['token']);
  
      if($abc[1]){
  
          $test = explode('&amp;expires_in=',$abc[1]);
      }
      else
      {
          $test[0] =$_POST['token'];
      }
  
      include 'qwert1.php';
  }
  
  else{}
  
  $titror ='?&gt;&lt;script&gt;alert("Sorry, Its Invalid");document.location="/";&lt;/script&gt;&lt;?';
  
  ?&gt;
  </code></pre>
  
  <p><a href="http://jsfiddle.net/g6ahh5ou/3/" rel="nofollow noreferrer">JsFiddle Link</a></p>