page1.php (with header function)
[PHP]<?php
header("Content-type: text/vnd.wap.wml");
print "<?xml version=\"1.0\" encoding=\"Shift-JIS\"?>";
$test = 123;
?>
<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN"
"http://www.wapforum.org/DTD/wml_1.1.xml">
<wml>
<card id="card1" title="Tutorial">
<p>
<fieldset title="住所" >
<small>検索する時に市区郡町村を書いてリンクを押す。</small><br/>
〒:<input type="text" name="custpostcode" value="<?php echo $test ?>" maxlength="8"/>
〒:<input type="text" name="custpostcode" value="456" maxlength="16"/>
</fieldset>
</p>
</card>
</wml>[/PHP]
Output:
page2.php (without header function)
[PHP]<?php
//header("Content-type: text/vnd.wap.wml");
print "<?xml version=\"1.0\" encoding=\"Shift-JIS\"?>";
$test = 123;
?>
<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN"
"http://www.wapforum.org/DTD/wml_1.1.xml">
<wml>
<card id="card1" title="Tutorial">
<p>
<fieldset title="住所" >
<small>検索する時に市区郡町村を書いてリンクを押す。</small><br/>
〒:<input type="text" name="custpostcode" value="<?php echo $test ?>" maxlength="8"/>
〒:<input type="text" name="custpostcode" value="456" maxlength="16"/>
</fieldset>
</p>
</card>
</wml>[/PHP]
Output:
Probem:
1) The output value in input control is not the expected value.
2) Not the same display.
Configurations:
Opera 9.22 (WML Browser)
Windows XP SP2 Japanese Version
Zend Studio 5.0
PHP 5.2.3
Apache 2.2.4