title: login page not working in phonegap with php
body: <p>Hello friends i am new in Phonegap and i am make simple login application with <strong>PHP</strong>.
  i have type of file like:</p>
  
  <ol>
  <li>index.html</li>
  <li>mob_login.php</li>
  <li>cordova.xml</li>
  </ol>
  
  <p>so my problem is when i run my program on phonegap in android my <strong>mob_login.php</strong> file is not working.</p>
  
  <ul>
  <li>in my index.html file my url is <strong>url: "http://10.0.0.2/mob_login.php"</strong> and my PHP file on my local host. how can access this file on my phonegap.</li>
  <li>and in my cordova.xml file i change the <strong>access origin="http://10.0.0.2*"</strong></li>
  <li>so please tall me where is change my file and how can i solve error.</li>
  </ul>
  
  <p>my index.html file is :-</p>
  
  <pre><code>&lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt;
  &lt;html&gt;
  &lt;head&gt;
  &lt;meta http-equiv="Content-Type" content="text/html; charset=utf-8" /&gt;
  &lt;title&gt;PhoneGap Login&lt;/title&gt;
      &lt;script type="text/javascript" charset="utf-8" src="cordova-2.0.0.js"&gt;&lt;/script&gt;
      &lt;script type="text/javascript" charset="utf-8" src="jquery-1.7.2.min.js"&gt;&lt;/script&gt;
      &lt;script type="text/javascript" charset="utf-8" src="jquery.mobile-1.1.1.js"&gt;&lt;/script&gt;
  
      &lt;script type="text/javascript" charset="utf-8"&gt;
          function login() {
          $.support.cors = true;
          $.mobile.allowCrossDomainPages = true;
  
              $(document).ready(function() {
                                var user = $("#user")[0].value;
                                var pass = $("#pass")[0].value;
  
                                $("#message")[0].value = "In function "+user +"  "+ pass;                                      
                                $.ajax({
                                       type: "POST",
                                       url: "http://10.0.0.2/mob_login.php",
                                       data: "users"+user+"&amp;pass="+pass,
  
                                       success: function(result){
  
                                       $("#message")[0].value = result;
                                       alert("Result "+result);
                                       }
                                       });
          });
                                }
          &lt;/script&gt;
  
  
  
  &lt;/head&gt;
  
  &lt;body&gt;
      &lt;form&gt;
          Username: &lt;input type="text" size="25" id="user"/&gt;
          &lt;br /&gt;
          Password: &lt;input type="text" size="25" id="pass"/&gt;
          &lt;br /&gt;
          &lt;input type="text" size="25" id="message" value="error message" /&gt;
          &lt;br /&gt;
          &lt;input type="button" value="Submit" onclick="login()"/&gt;
          &lt;/form&gt;
  
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>and my mob_login.php file is :-</p>
  
  <pre><code>&lt;?php
  $user = $_REQUEST['user'];
  $pass = $_REQUEST['pass'];
  
  if($pass == "123" &amp;&amp; $user == "kirit"){
      echo "Login Sucsess";
  } else {
      echo "Login Fail";
  }
  ?&gt;
  </code></pre>
  
  <p>and my cordova.xml file is :-</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  
  &lt;cordova&gt;
      &lt;access origin="http://10.0.0.2*"/&gt; 
      &lt;log level="DEBUG"/&gt;
      &lt;preference name="useBrowserHistory" value="false" /&gt;
  &lt;/cordova&gt;
  </code></pre>
  
  <p>this is my file and how can i solve the problem please i try to many way but i can't solve please any buddy help me?</p>