我创建了一个带有调用 PHP 的表单的网页,以从中获取一些数据。但是当我通过PhoneGap制作这个网页的应用程序并在黑莓手机上下载时。它不接收任何数据。同时,当我通过黑莓浏览器查看我的网页时,我可以查看包含所需数据的网页。可能的原因是什么?
这个 index.html(用于 PhoneGap)
<!DOCTYPE html>
<html>
<head>
<title>Mobile </title>
</head>
<body>
<form name="input" action="http://lowenstern.com.ar/test.php" method="post">`enter code here`
<input type="submit" value="Submit">
</form>
</body>
</html>
config.xml(用于 BlackBerry Developer 中的 PhoneGap 或 WebWorks 以及示例)
<?xml version="1.0" encoding="utf-8"?>
<widget xmlns="http://www.w3.org/ns/widgets"
xmlns:rim="http://www.blackberry.com/ns/widgets"
version="2.0"
rim:header="RIM-Widget: rim/widget">
<author href="http://www.example.com/"
rim:copyright="Copyright 1998-2012 My Corp">My Corp</author>
<rim:navigation mode="focus" />
<name>Sample application</name>
<description>
A sample application to demonstrate some features.
</description>
<rim:orientation mode="auto"/>
<rim:loadingScreen backgroundImage="background.png"
foregroundImage="foreground.gif"
onLocalPageLoad="true">
<rim:transitionEffect type="zoomIn" />
</rim:loadingScreen>
<icon src="icons/example.png"/>
<rim:cache maxCacheSizeTotal="2048" maxCacheSizeItem ="256" />
<content src="index.html" ></content>
<feature id="blackberry.ui.dialog"/>
<access uri="http://lowenstern.com.ar" subdomains="true">
<feature id="blackberry.pim.memo"/>
<feature id="blackberry.app"/>
<feature id="blackberry.invoke.MemoArguments"/>
</access>
<rim:connection timeout="25000">
<id>TCP_WIFI</id>
<id>MDS</id>
<id>BIS-B</id>
<id>TCP_CELLULAR</id>
<id>WAP2</id>
<id>WAP</id>
</rim:connection>
<license>
Example license
Copyright (c) 2012 My Corp.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
WHETHER IN AN ACTION OF CONTRACT, INSULT OR OTHERWISE, ARISING
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
OTHER DEALINGS IN THE SOFTWARE.
</license>
</widget>
测试.php
<?php
echo 'Hello World';
?>
有任何想法吗?
提前致谢!!!