473,394 Members | 2,160 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

Different result when adding Header function to set the Content-type document

66
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
Aug 10 '07 #1
1 1605
pbmods
5,821 Expert 4TB
Heya, eros.

My guess is that the problem lies in how Opera handles that content-type. Have you tried it in other browsers?
Aug 13 '07 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

82
by: zardoz | last post by:
I've got this problem: unsigned long long lTemp; char cLargeNum="1324567890"; sscanf(clargeNum,"%llu",&lTemp); which under Win32 isn't working*. My program needs to compile under posix so...
2
by: saleek | last post by:
I was wondering if there is a way I can add an extra header to a datagrid? I found this solution on the internet - but it seems quite old and didn't work for me. ...
6
by: dana lees | last post by:
Hello, I am developing a c# asp.net application. I have 2 forms. In the first webform ('header') i have a label. I want to reference that label from a different form ('user'), in order to...
9
by: serge | last post by:
/* Subject: How to build a procedure that returns different numbers of columns as a result based on a parameter. You can copy/paste this whole post in SQL Query Analyzer or Management Studio...
1
by: Helen Martin | last post by:
I'm working on this website at http://members.shaw.ca/sharethemusic/index.htm I'm trying to figure out how to style headers so that I can have different styles for different areas of my page.....
5
by: Matt | last post by:
Hi there, I'm working with a bit of a messy query but I'm not looking for tips on improving it (it's been a headache enough, haha). Basically, my site posts articles written by multiple...
3
by: Emma Middlebrook | last post by:
Hi there, I've been trying to implement a repeater control in an ASP.NET 2 page but I can't seem to get the layout exactly how I want and I'm not sure if it's something that I am doing wrong or...
12
by: Studiotyphoon | last post by:
Hi, I have report which I need to print 3 times, but would like to have the following headings Customer Copy - Print 1 Accounts Copy - Print 2 File Copy -Print 3 I created a macro to...
4
by: Nathan Sokalski | last post by:
I have a content page from which I need to add a style rule to be used by the page. Since content pages only have the content tags, I obviously need to edit the Master page's style using code. I am...
1
by: chandhseke | last post by:
Hi folks, I am a newbie to this functionality of creating excel report using VB/VB Script. I have been given a code and asked to add filters to the excel sheet that is created using the below...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.