PHP增加了隐藏价值 [英] PHP adds hidden value

查看:69
本文介绍了PHP增加了隐藏价值的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好,就在今天,试图验证我的网站代码在php中写的

,我发现这条线的存在已经被认可:


< input type =" hidden" name =" PHPSESSID"

value =" c108f42e24e7111ec399772308b24cb3" />


在源代码中不存在的行,我已经检查并再次检查了

。是否可能有些奇怪的事情?我可以避免吗?当我试图验证页面时,这样的页面被指示为包含错误


但是再次感到奇怪,如果在Linux服务器上执行相同的脚本没有
显示这种奇怪的行为。


Francesco

解决方案

Ernestino写道:


你好,就在今天,试图验证我的网站代码

用PHP写的,我发现判断是否存在这个

行:


< input type =" hidden" name =" PHPSESSID"

value =" c108f42e24e7111ec399772308b24cb3" />


在源代码中不存在的行,我已经检查并再次检查了

。是否可能有些奇怪的事情?我可以避免吗?对于

我尝试验证页面时,此页面显示为包含

错误


但是再次感到陌生,如果在Linux服务器上执行相同的脚本

并没有显示这种奇怪的行为。



session.use_only_cookies?


Grtz,

-

Rik Wasmus


但再次感到陌生,如果在Linux服务器上执行相同的脚本则不会


显示出这种奇怪的行为。



这是因为你正在使用会话,并且PHP会自动重写你的表格 - 会话ID必须以某种方式传输。


如果你想删除重写,你应该使用cookies。


Carl Vondrick

Il Sun,2006年7月30日07:45:06 +0000,Carl Vondrick ha scritto:


> [ testo citato nascosto]



这是因为你正在使用会话,PHP会自动重写你的表格 - 会话ID必须是传递了一些方法。


如果你想删除重写,你应该使用cookies。



好​​的,但是,as我写道,如果在Linux服务器上执行相同的脚本,则不会显示这种奇怪的行为。


Francesco


Hallo, just today, trying to validate the code of a site of mine written
in php, I discovered that is segnalled the presence of this line:

<input type="hidden" name="PHPSESSID"
value="c108f42e24e7111ec399772308b24cb3" />

line that in the source code doesn''t exist, I have checked and checked
again. Is it possibile some strange thing? Could I avoid it? For when I
try to validate the page, such page is indicated as containing an error

But stranger again, the same script if executed on a Linux Server doesn''t
show this strange behaviour.

Francesco

解决方案

Ernestino wrote:

Hallo, just today, trying to validate the code of a site of mine
written in php, I discovered that is segnalled the presence of this
line:

<input type="hidden" name="PHPSESSID"
value="c108f42e24e7111ec399772308b24cb3" />

line that in the source code doesn''t exist, I have checked and checked
again. Is it possibile some strange thing? Could I avoid it? For when
I try to validate the page, such page is indicated as containing an
error

But stranger again, the same script if executed on a Linux Server
doesn''t show this strange behaviour.

session.use_only_cookies ?

Grtz,
--
Rik Wasmus


But stranger again, the same script if executed on a Linux Server doesn''t

show this strange behaviour.

This is because you are using sessions, and PHP is automatically
rewriting your forms--the session ID must be transmitted some how.

If you want to remove the rewriting, you should use cookies.

Carl Vondrick


Il Sun, 30 Jul 2006 07:45:06 +0000, Carl Vondrick ha scritto:

>[testo citato nascosto]


This is because you are using sessions, and PHP is automatically
rewriting your forms--the session ID must be transmitted some how.

If you want to remove the rewriting, you should use cookies.

Ok, but, as I wrote, the same script if executed on a Linux Server doesn''t
show this strange behaviour.

Francesco


这篇关于PHP增加了隐藏价值的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆