Martin
2004-07-07 11:19:20 UTC
I begin in wml, but I wish to manage a "WAP" site on my PC via JANASERVER.
The official forum of jana proposes to add the following types MIME to solve
the problems:
wml=text/vnd.wap.wml
wmlc=application/vnd.wap.wmlc
wbmp=image/vnd.wap.wbmp
wmls=text/vnd.wap.wmlscript
What i have done without success. I have also PHP installed. The test below
always answers me "failed".
I sure i miss something in JANA configuration but what ??
Thank you for your help.
Fred.
(2 t.php pages, t2.php)
-----> t.php
<?php
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\">";
echo "<wml>\n<card>\n";
echo "<p>\n";
echo "<input type=\"text\" name=\"var\" value=\"test\"/>\n";
echo "<anchor title=\"search\">Search\n";
echo "<go href=\"t2.php\" method=\"get\">\n";
echo "<postfield name=\"var\" value=\"$(var)\"/> ";
echo "</go> </anchor>\n";
echo "</p>";
echo "</card></wml>";
?>
----------------------------------------------------------------------------
----
---> t2.php
<?php
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\">";
echo "<wml>\n<card>\n";
echo "<p>\n";
if(!isset($_GET['var']))
$test="failed";
else
$test=$_GET['var'];
echo "<b>my variable : $test</b>";
echo "</p></card></wml>";
?>
The official forum of jana proposes to add the following types MIME to solve
the problems:
wml=text/vnd.wap.wml
wmlc=application/vnd.wap.wmlc
wbmp=image/vnd.wap.wbmp
wmls=text/vnd.wap.wmlscript
What i have done without success. I have also PHP installed. The test below
always answers me "failed".
I sure i miss something in JANA configuration but what ??
Thank you for your help.
Fred.
(2 t.php pages, t2.php)
-----> t.php
<?php
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\">";
echo "<wml>\n<card>\n";
echo "<p>\n";
echo "<input type=\"text\" name=\"var\" value=\"test\"/>\n";
echo "<anchor title=\"search\">Search\n";
echo "<go href=\"t2.php\" method=\"get\">\n";
echo "<postfield name=\"var\" value=\"$(var)\"/> ";
echo "</go> </anchor>\n";
echo "</p>";
echo "</card></wml>";
?>
----------------------------------------------------------------------------
----
---> t2.php
<?php
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\">";
echo "<wml>\n<card>\n";
echo "<p>\n";
if(!isset($_GET['var']))
$test="failed";
else
$test=$_GET['var'];
echo "<b>my variable : $test</b>";
echo "</p></card></wml>";
?>