title: PHP login form redirect to offline, iPhone Web App
body: <p>I have an offline html document with a login form.</p>
  
  <p>It sends the information with POST to 'login.php' (which checks your username and password, and starts the session) on my server (online).</p>
  
  <p>In that php file I have use this to 'redirect' to the page where you are logged in:</p>
  
  <pre><code>header('Location: index.php');
  </code></pre>
  
  <p>So now it redirects to another php file on my server (index.php) , but it needs to redirect back to an offline HTML file (that is in that hybrid app <code>&lt;&lt;kind of web app but offline&gt;&gt;</code>) called index.html.</p>
  
  <p>How can I do this ?</p>