Below file called "keyword.wml"
<?xml version="1.0"?>
<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN" "http://www.wapforum.org/DTD/wml_1.1.xml">
<wml>
<card id="search" title="Search">
<do type="accept" label="GO!">
<go method="post" href="http://www.thepagesite.com/test/result.php3?keyword=$(keyword)" sendreferer="true">
</go>
</do>
<p>Enter a keyword:<br/>
<input name="keyword" size="15"/>
</p>
</card>
</wml>
Below file called "result.php3"
<?php_track_vars?>
<?php
header ( "Content-type: text/vnd.wap.wml" );
$str= "<?xml version=\"1.0\"?>
<!DOCTYPE wml PUBLIC \"-//WAPFORUM//DTD WML 1.1//EN\"
\"http://www.wapforum.org/DTD/wml_1.1.xml\">
<wml>
<card id=\"index\" title=\"index\">
<p>Hello, I searched for ".$HTTP_POST_VARS[keyword]."</p>
</card>
</wml>";
echo $str;
?>
Below is resulting error message from Phone.com phone emulator:
--------- DATA SIZE ---------
Uncompiled data from HTTP is 224 bytes.
...found Content-Type: text/html.
Content-Type: text/html. Content follows:
<?xml version="1.0"?>
<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN"
"http://www.wapforum.org/DTD/wml_1.1.xml">
<wml>
<card id="index" title="index">
<p>Hello, I searched for </p>
</card>
</wml>
End Content-Type: text/html.
No translator for content-type: text/html
Below AddTypes are included in my .htaccess
AddType text/vnd.wap.wml wml
AddType image/vnd.wap.wbmp wbmp
AddType text/vnd.wap.wmlscript wmls
AddType application/vnd.wap.wmlc wmlc
AddType application/vnd.wap.wmlscriptc wmlsc
I can't understand why I'm getting the error message:
No translator for content-type: text/html
Any help will really be appreciated.
Thanks,
Ben Venable