Hey There ,
I have been trying to get a login script (php) to connect with a form in wml i tried it in WinWap and Sony Ericsson Z 200 and it doesnt work. I used the following code for the check.php file
<?php
// send wml headers
header("Content-type: text/vnd.wap.wml");
echo "<?xml version=\"1.0\"?>";
echo "<!DOCTYPE wml PUBLIC \"-//WAPFORUM//DTD WML 1.1//EN\""
. " \"http://www.wapforum.org/DTD/wml_1.1.xml\">";
?>
<wml>
<card id="card1" title="Example 1">
<p>
<?php
// Change the login information for your username and password to access the page.
$login = "1";
$password = "1";
function error ($error_message) {
echo $error_message."<BR>";
exit;
}
if ( (!isset($PHP_AUTH_USER)) || ! (($PHP_AUTH_USER == $login) && ( $PHP_AUTH_PW == "$password" )) ) {
header("WWW-Authenticate: Basic enter=\"www.google.ca/wap"");
header("HTTP/1.0 401 Unauthorized");
error("You are not authorized!");
}
?>
</p>
</card>
</wml>
[CODE]
and it says that this is not wml content , does any1 know of any login scripts for wml.
Thanks in Advance