Home > WAP Programming > Page view error on wap

Page view error on wap



hello:

i tried browsing to a WAP site using

"sharp sidekick3" mobilephone...

it shows an error

"The content on the page you requested is not supported".



the celphone is wap 2.x ... and the page has this codes


Code:



<?php
header('Content-type: application/vnd.wap.xhtml+xml');
echo '<?xml version="1.0" encoding="ISO-8859-1"?>';
?>
<!DOCTYPE html PUBLIC "-//WAPFORUM//DTD XHTML Mobile 1.0//EN" "http://www.wapforum.org/DTD/xhtml-mobile10.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
<title>wapsite</title>
</head>
<body>
<p>test wap site
</p>
</body>
</html>






tried using an emulator... and it's working fine.



thanks in advance

    
Guest


Perhaps the phone doesn't understand the headers?



Under normal circumstances, you must send content type and charset in one header:

PHP Code:





<?php

header
('Content-Type: application/vnd.wap.xhtml+xml; charset=ISO-8859-1');

// rest of code
Was this answer helpful ? Yes No   
Guest


thanks for the reply.

i'll try that jabba...

thanks again...

Was this answer helpful ? Yes No   
Guest
 
 
Home - About Infoqu - Contact - Privacy Statement - Link to Infoqu - Bookmark Infoqu

Copyright 2007-2010 by Infoqu. All rights reserved