Discussion:
JANASERVER and the WAP (WML...)
(zu alt für eine Antwort)
Martin
2004-07-07 11:19:20 UTC
Permalink
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>";

?>
Thomas Wesenigk
2004-07-07 14:01:33 UTC
Permalink
Hello!

Martin wrote on Wednesday, July 7 2004 13:19:
^^^^^^^^^

To be more polite, you should post with your full name next time.
Post by Martin
I wish to manage a "WAP" site on my PC via JANASERVER.
I don't know very much about WML, but I think that it has to be parsed by
the client (like HTML). So (actually) the server doesn't need some special
rules or programs to manage a WML document. What you need is a mobil phone
that supports WAP, and this mobil phone may have a WML parser software.

Maybe you problem can also be syntactically?
Try to use only WML (without using your own XML tags). My teacher of
computer science told me that WML has the same tags like HTML but the <wml>
and <card>. The document can be saved on a web server so that the WAP
client (mobil phone) can download it.

I hope that this can help you, as I said, I don't know very much about XML
and WML.

Thomas
--
Please answer only to the group!
When answering via eMail, "NGANTWORT" has to be part of the subject.
Loading...