Hello all! I have the following example of a code which works just fine when i'm using my wap-phone:
<?php
header("content-type:text/vnd.wap.wml");
print '<?xml version="1.0"?>';
print '<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN" "http://www.wapforum.org/DTD/wml_1.1.xml">';
?>
<wml>
<card id="cardone" title="Search">
Welcome to the wap-page
</card>
</wml>
However, when adding a:
<img src="symicons16.wbmp"/> it won'y display using the wap-phone (it will work however, when using WAP-emulators like gelon.net).
There is nothing wrong with the picture or type of it as i've tried various.
Now, my first thought is i should add a "header("content-type:image/vnd.wap.wbmp"). However when i add this just under the first line (header...text/vnd.wap.wml) it won't work either... (no error message when wapping to the site, it just exists).
Does anyone know what i'm doing wrong here?
If, and where, should i add the header("content-type:image/vnd.wap.wbmp") line??
Running PHP4, Apache, Linux...
Thanks in advance.
Anders