A
Anonymous
Guest
is there a special php that works on wap? i tried with the normal one, and for some strange reason the server didnt procces the php bits. it should proccess even if the file is a .wml file, shouldnt it?
ruturajv said::lol: :lol: :lol:
Pejone he fears you!!!! :lol:
enter.wml
<?php
header("Content-type: text/vnd.wap.wml");
echo "<?xml version=\"1.0\" encoding=\"ISO-8859-1\"?>";
echo "<!DOCTYPE wml PUBLIC \"-//WAPFORUM//DTD WML 1.1//EN\""
. " \"http://www.wapforum.org/DTD/wml_1.1.xml\">";
?>
<wml>
<card id="main" title="Log ind">
<p>
Username:
<br />
<input title="user" name="username" />
Password:
<br /><input title="pass" name="password" type="password" />
<anchor>
Login
<go href="check.wml" method="post">
<postfield name="username" value="$(username)"/>
<postfield name="password" value="$(password)"/>
</go>
</anchor>
</p>
</card>
</wml>
check.wml
<?php
header("Content-type: text/vnd.wap.wml");
echo "<?xml version=\"1.0\" encoding=\"ISO-8859-1\"?>";
echo "<!DOCTYPE wml PUBLIC \"-//WAPFORUM//DTD WML 1.1//EN\""
. " \"http://www.wapforum.org/DTD/wml_1.1.xml\">";
?>
<wml>
<card id="varcheck" title="VARS">
<p>
<?php
if(isset($_POST["username"])) {
echo $_POST["username"];
}
echo"<br/>";
if(isset($_POST["password"])) {
echo $_POST["password"];
}
?>
</p>
</card>
</wml>
document start expected (before or at line 4)
<?php
header("Content-type: text/vnd.wap.wml");
echo "<?xml version=\"1.0\" encoding=\"ISO-8859-1\"?>";
echo "<!DOCTYPE wml PUBLIC \"-//WAPFORUM//DTD WML 1.1//EN\""
. " \"http://www.wapforum.org/DTD/wml_1.1.xml\">";
?>
to
<?php
header("Content-type: text/vnd.wap.wml");
echo "<?xml version=\"1.0\" encoding=\"ISO-8859-1\"?>";
echo "<!DOCTYPE wml PUBLIC \"-//WAPFORUM//DTD WML 1.1//EN\"" . " \"http://www.wapforum.org/DTD/wml_1.1.xml\">";
?>