由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
BuildingWeb版 - why is it?
相关主题
哪位高手能不能写个“设计e-commerce 网站123”?post problem
passing paremetor in html codea problem confused a long time!
网页上的文字一直往右拖no cache CGI output
remote API 's output?新手请教:如何将Unix下画图软件的图即使显示到网页上
请教: 如何跟据browser不同改变语句中size值ASP再问
Ask Monark: How to solve the string quote problem请教关于multipart/form-data
I am confusedadding a search link
cgi problem.why some character can not display correctly?Any Idea ?
相关话题的讨论汇总
话题: spaces话题: output话题: string话题: why话题: between
进入BuildingWeb版参与讨论
1 (共1页)
s*****i
发帖数: 650
1
A+++++++A is the string In put.
why the output is A A, where is the other spaces between 2 As?
thx.
t****r
发帖数: 106
2
什么里面?具体点儿

【在 s*****i 的大作中提到】
: A+++++++A is the string In put.
: why the output is A A, where is the other spaces between 2 As?
: thx.

s*****i
发帖数: 650
3
The problem is:
I input "A A", five spaces between As.
Then I transfer this string to server, using
post method. The string now is "A+++++A",(
the space is changed to +).
Then I change "+" to " " and output. I mean output
to the IE if some user input the string and want to
see what he/she input.
but now the output is "A A", whatever how many spaces
between them. But another problem is:
the string length is correct.
the first one is 7.
how this come?


【在 s*****i 的大作中提到】
: A+++++++A is the string In put.
: why the output is A A, where is the other spaces between 2 As?
: thx.

n******t
发帖数: 239
4

The browser will "compress" any length of space into a single space.
If you check the html source code, there are still 5 spaces between 2 As.

【在 s*****i 的大作中提到】
: The problem is:
: I input "A A", five spaces between As.
: Then I transfer this string to server, using
: post method. The string now is "A+++++A",(
: the space is changed to +).
: Then I change "+" to " " and output. I mean output
: to the IE if some user input the string and want to
: see what he/she input.
: but now the output is "A A", whatever how many spaces
: between them. But another problem is:

w*****n
发帖数: 94
5

Check the source of output web pages, I bet you will find enough spaces.
All consecutive spaces in HTML file will be displayed as one space.
Use  , or
 to protect them.

【在 s*****i 的大作中提到】
: The problem is:
: I input "A A", five spaces between As.
: Then I transfer this string to server, using
: post method. The string now is "A+++++A",(
: the space is changed to +).
: Then I change "+" to " " and output. I mean output
: to the IE if some user input the string and want to
: see what he/she input.
: but now the output is "A A", whatever how many spaces
: between them. But another problem is:

s*****i
发帖数: 650
6
thx very much for u gurs suggestion.. I have solved it.
I forget to use pre, I am stupid.
thx very much

【在 w*****n 的大作中提到】
:
: Check the source of output web pages, I bet you will find enough spaces.
: All consecutive spaces in HTML file will be displayed as one space.
: Use  , or
 to protect them.
1 (共1页)
进入BuildingWeb版参与讨论
相关主题
Any Idea ?请教: 如何跟据browser不同改变语句中size值
看看我的form问题Ask Monark: How to solve the string quote problem
为什么我的Apache老是把文件default成English?I am confused
HELPcgi problem.why some character can not display correctly?
哪位高手能不能写个“设计e-commerce 网站123”?post problem
passing paremetor in html codea problem confused a long time!
网页上的文字一直往右拖no cache CGI output
remote API 's output?新手请教:如何将Unix下画图软件的图即使显示到网页上
相关话题的讨论汇总
话题: spaces话题: output话题: string话题: why话题: between