Thread: dynamic WML?

    #1
  1. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Apr 2001
    Location
    Northampton, England
    Posts
    82
    Rep Power
    0

    dynamic WML?


    Hi,

    I am running Columbitech's WAP Connector with IIS.

    I have a website (html) which uses PHP to do stuff to a database (enter stuff form forms, return its contents etc...). My PHP scripts do SQL queries on my MySql database and dynamically produces HTML pages of the results.

    What I was wondering is if it is possible for me to use

    <go method="post" href="examplescript.php">

    or something liek that and then to have examplescript.php to produce wml pages as output?

    If so, do I just echo wml code instead of regular html in the script or are there any special considerations?

    I hope someone can help me, I'm only very new to wml...

    Cheers

    Dodgie
    Think of the most annoyingly simple question and I've probably asked it on here!
  2. #2
  3. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Aug 2001
    Posts
    1
    Rep Power
    0

    Lightbulb same here


    I have the exact same question.

    I just recieved a contract to convert a e-commerce webpage to WAP. Im sure there is aspects of that page which will have to be dynamic.

    Wondering if this is possible....
  4. #3
  5. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Mar 2001
    Posts
    14
    Rep Power
    0
    Hi eveybody,

    I've wrote a few WAP games using Perl and WML. You could use PHP to produce WML output, if you want it to be used on a mobile phone all you have to do it echo the WML header and echo the WML code. Provided that the web server allows WML mime type of course. See below for an example i've provided it in a PHP compatible format :-

    // Prints the WAP header for the WAP browser
    echo "Content-Type: text/vnd.wap.wml\n\n";

    // Uses the WAPFORUM's XML DTD
    echo "<?xml version=\"1.0\"?>\n";
    echo "<!DOCTYPE wml PUBLIC \"-//WAPFORUM//DTD WML 1.1//EN\" \n";
    echo "\"http://www.wapforum.org/DTD/wml_1.1.xml\">\n";

    "echo your WML code here"

    hope that helped
  6. #4
  7. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Apr 2001
    Location
    Northampton, England
    Posts
    82
    Rep Power
    0
    Thanks, that's just what I needed to know...

    Thankyou very much

    Richard
    Think of the most annoyingly simple question and I've probably asked it on here!

IMN logo majestic logo threadwatch logo seochat tools logo