I'm very new to WAP programming. I need to make a PHP generated WAP 2 (stylesheets) page so I went through few tutorials, but even though that my page seems to be "valid" (W3), it doesn't appear on any of my mobile phones.
I was looking for the reason and so far I read smth about XHTML. Why is the WML2 DTD not supported and why do I have to use XHTML DTD? (do I?)
(ofc there's no need for PHP yet, but there'll be and i was wondering if my problem is not in the PHP header)Code:<? header("content-type: text/vnd.wap.wml;charset=UTF-8"); echo '<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE html PUBLIC "-//WAPFORUM//DTD WML 2.0//EN" "http://www.wapforum.org/dtd/wml20-flat.dtd"> <html xmlns:wml="http://www.wapforum.org/2001/wml" xmlns="http://www.w3.org/1999/xhtml" version="-//WAPFORUM//DTD WML 2.0//EN"> <head> <title>Omega on WAP 2.0</title> </head> <wml:card id="aboutus" title="Omega on WAP 2.0"> <p> Profiles:<br/><br/> - <a href="./month.php">monthly</a><br/> - <a href="./week.php">weekly</a><br/> - <a href="./day.php">daily</a><br/> </p> <p><br/><br/>this is a test:<br/><big>big text</big><br/>normal text<br/><small>small text</small> </p> </wml:card> </html> '; ?>
Any help is very appreciate. Thanks for you time.
- milan orszagh