title: Local Login/Registration Android Phonegap
body: <p>I'm trying to develop a local registration procedure in my app, so the user will be able to register locally, and login with his personal user and password. </p>
  
  <p>Can someone give me a simple example how can i accomplish this? Meaning how do i store the local username and password input in registration, and later login with this data?</p>
  
  <p>For example this will be my Login and Registarion html pages:</p>
  
  <pre><code>&lt;body onload="init()"&gt;
  
  &lt;div id="loginPage" data-role="page"&gt;
  
      &lt;div data-role="header"&gt;
          &lt;h1&gt;Registration/Login Demo&lt;/h1&gt;
      &lt;/div&gt;
  
       &lt;div data-role="content"&gt;    
  
           &lt;form id="loginForm"&gt;
           &lt;div data-role="fieldcontain" class="ui-hide-label"&gt;
               &lt;label for="username"&gt;Username:&lt;/label&gt;
               &lt;input type="text" name="username" id="username" value=""     placeholder="Username" /&gt;
           &lt;/div&gt;
  
      &lt;div data-role="fieldcontain" class="ui-hide-label"&gt;
          &lt;label for="password"&gt;Password:&lt;/label&gt;
          &lt;input type="password" name="password" id="password" value="" placeholder="Password" /&gt;
      &lt;/div&gt;
  
      &lt;div data-role="fieldcontain" class="ui-hide-label"&gt;
          &lt;label for="password"&gt;Re-enter Password:&lt;/label&gt;
          &lt;input type="password" name="password" id="password" value="" placeholder="Password" /&gt;
      &lt;/div&gt;
  
  
      &lt;input type="submit" value="Login" id="submitButton"&gt;
      &lt;/form&gt;
  
  &lt;/div&gt;
  </code></pre>
  
  <p></p>
  
  <p></p>
  
  <p>How do i construct my js file?</p>
  
  <p>Thanks.</p>