I'm having problems when trying to print something from a PHP program in WML form. There's an example below.
Firstly, I'm using <do> & <go> -tags in my little WML program to get to PHP program. Then the PHP program (the code below) should print something in the next card. I'm using www.wapsilon.com emulator for testing, and when the PHP program should work, the emulator is saying "Wrong mime-type, I got text/html, but I want text/vnd.wap.wml".
The most interesting thing is that when you use some basic internet browser with the code, go to Source -page, copy the resulting printed wml code, and create a new WML file with the code. Then it works fine also through the Wapsilon emulator.
Code:<?php $alku1 = '<?php'; $alku2 = 'header("Content-type: text/vnd.wap.wml");'; $alku3 = '?>'; $otsikko = '<wml> <card id="card1" title="Haku"> <p> <fieldset title="Toimittajat">'; $otsikko2 = ' Toimittajat: </fieldset> </p> </card> </wml>'; print "$alku1\n"; print "$alku2\n"; print "$alku3\n"; print "$otsikko"; print "$otsikko2"; ?>