06-15-2012 12:56 AM
Hello,
<?xml version="1.0" encoding="UTF-8"?>
<widget xmlns="http://www.w3.org/ns/widgets" xmlns:rim="http://www.blackberry.com/ns/widgets" version="1.0.0.0">
<name>test</name>
<access subdomains="true" uri="*" required="true" />
<content src="http://localhost/Forex/checklogin.php"/>
<content src="index.html"/>
</widget>
if($count==1){// Register $myusername, $mypassword and redirect to file "login_success.html"session_register("myusername");session_register("mypassword");header("location:HTML/login_success.html");}else {echo "Wrong Username or Password";
Solved! Go to Solution.
06-15-2012 05:27 AM
Hi,
PHP is a server-side technology, meaning, it runs on the webserver, not on the browser. I don't think you can use local PHP files in a webworks app.
Nuno
06-15-2012 05:30 AM
Sorry, I understand now what you meant. You are trying to establish a connection to a server-side php page, right?
You can do that, but then I guess the user will be out of your app. Not sure if there is a way to "get back in".
What I can think of is doing the request by AJAX, so you process the results inside the app. To do that you need access to the php file to code it appropriately.
nuno
06-15-2012 06:50 AM
You can have only one <content src="">
Then you add authorization to access your's server php file:
<access uri="http://localhost/Forex/checklogin.php" subdomains="true">
<feature id="blackberry.ui.dialog"/>
<ANY FEATURE call from by javascript from this file>
</access>
You can access from and to your server file with redirection to these url:
http://localhost/Forex/checklogin.php
local:///WebContent\localFile.html
07-27-2012 09:10 AM
use a linux server in which u can run the php files and use iframe codes to display it in webwork apps
to buy hosting in less price with 100% uptime call me on +91 9900989797 or visit http://webcreep.in