
July 22nd, 2003, 10:40 PM
|
|
Contributing User
|
|
Join Date: Nov 2000
Location: Copenhagen, DK
Posts: 231
Time spent in forums: 4 h 39 m 35 sec
Reputation Power: 13
|
|
|
This is working for me:
<?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>
Then, 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>
But I'm new in the "wap-world", and I find it a bit complicated, making it all working together! :O)
|