为什么URL会影响我的变量? [英] Why Is The URL Affecting My Variables?

查看:64
本文介绍了为什么URL会影响我的变量?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

看看这个:
http:/ /www.backwater-productions.net/npindex/index.php


点击Nintento,A,然后点击魔法中的冒险王国


o_O


为什么突然失去系统变量?


但是如果我制作一个文件的精确副本并将其放在我的主目录中,它就可以了!
http://www.backwater-productions.net/index.php


但现在尝试Nintendo,A和A。和ADDAMS FAMILY,THE。 o_O


它失去了它!但现在尝试另一个,它的工作原理!我已经遍历了我的代码

一遍又一遍,我不能为我的生活找出任何可辨别的

模式,我也无法计算为什么它这样做。以下是源代码:
http:// www.backwater-productions.net/npindex/source.ph3


我唯一能想到的是变量以某种方式在

url,这导致它搞砸了。我不完全是你所谓的PHP专家,但是我不确定。有没有人对我怎么解决这个问题有什么想法?


-


Onideus Mad帽匠

mhm?1 x?1
http:/ /www.backwater-productions.net

Take a look at this:
http://www.backwater-productions.net/npindex/index.php

Click "Nintento", "A", and then click "Adventures In The Magic Kingdom"

o_O

Why does it suddenly lose the system variable?

But then if I make an EXACT copy of the file and put it in my main directory, it works!
http://www.backwater-productions.net/index.php

But now try "Nintendo", "A" and "ADDAMS FAMILY, THE". o_O

It loses it! But now try it on the other one and it works! I''ve gone through my code
over and over and over again and I can''t for the life of me figure out any discernable
pattern nor can I figure out why it''s doing it. Here''s the source code:
http://www.backwater-productions.net/npindex/source.ph3

The only thing I can think of is that the variables are somehow being passed along in the
url and that''s causing it to screw up. I''m not exactly what you would call an expert in
PHP though so I''m not really sure. Does anyone have any ideas on how I can fix this lil
problem?

--

Onideus Mad Hatter
mhm ?1 x ?1
http://www.backwater-productions.net

推荐答案

On Fri,2003年12月12日22:39:42 -0800,Onideus Mad Hatter

< ma ******** @ backwater-productions.net>写道:
On Fri, 12 Dec 2003 22:39:42 -0800, Onideus Mad Hatter
<ma********@backwater-productions.net> wrote:
看看这个:
http://www.backwater-productions.net/npindex/index.php

点击Nintento,A,然后点击点击神奇王国中的冒险



为什么突然失去系统变量?

但是如果我做了一个精确的话该文件的副本并将其放在我的主目录中,它可以工作!
http://www.backwater-productions.net/index.php

但现在尝试Nintendo,A和A。和ADDAMS FAMILY,THE。 o_O

它失去了它!但现在尝试另一个,它的工作原理!我已经遍历了我的代码
一遍又一遍,我不能为我的生活找出任何可辨别的模式,也不能弄明白为什么它这样做。以下是源代码:
http:// www.backwater-productions.net/npindex/source.ph3

我唯一能想到的是变量以某种方式传递到
网址中导致它搞砸了。我不是你会称之为PHP的专家,所以我不太确定。有没有人对如何解决这个问题有任何想法?
Take a look at this:
http://www.backwater-productions.net/npindex/index.php

Click "Nintento", "A", and then click "Adventures In The Magic Kingdom"

o_O

Why does it suddenly lose the system variable?

But then if I make an EXACT copy of the file and put it in my main directory, it works!
http://www.backwater-productions.net/index.php

But now try "Nintendo", "A" and "ADDAMS FAMILY, THE". o_O

It loses it! But now try it on the other one and it works! I''ve gone through my code
over and over and over again and I can''t for the life of me figure out any discernable
pattern nor can I figure out why it''s doing it. Here''s the source code:
http://www.backwater-productions.net/npindex/source.ph3

The only thing I can think of is that the variables are somehow being passed along in the
url and that''s causing it to screw up. I''m not exactly what you would call an expert in
PHP though so I''m not really sure. Does anyone have any ideas on how I can fix this lil
problem?




好​​吧,我想没有人知道或者没有人关心。 *耸耸肩*


我找到了解决办法,虽然我还不知道原因。我发现,如果我输入一个

虚假变量,比如



Well, I guess nobody knows or nobody cares. *shrugs*

I did find a solution, although I still don''t know the cause. I found that if I put in a
faux variable, like


空白并将其放在所有其他变量之前,那么它可以正常工作。

出于某种原因,它只是第一个以形式发送的变量被搞砸了

。但是,我不知道为什么。如果我随机猜测我会说

它可能与全局变量等有关,但我不太确定。


-


Onideus Mad Hatter

mhm?1 x?1
http://www.backwater-productions.net
blank and put it before all the other variables then it works fine.
For some reason it''s only the first variable being sent in the form that gets screwed up
on occasion. Again though, I have no idea why. If I were to take a random guess I''d say
it might have something to do with global variables and such, but I''m not really sure.

--

Onideus Mad Hatter
mhm ?1 x ?1
http://www.backwater-productions.net


" Onideus疯帽子 aécritle13/12/2003:
"Onideus Mad Hatter" a écrit le 13/12/2003 :
2003年12月12日星期五22:39:42 -0800,Onideus Mad Hatter
On Fri, 12 Dec 2003 22:39:42 -0800, Onideus Mad Hatter
看看这个:
http://www.backwater-productions.net/npindex/ index.php



好吧,我想没有人知道或没有人关心。 * shrugs *



Well, I guess nobody knows or nobody cares. *shrugs*




Personnaly我不喜欢任何帖子开头的看看

那里,等等

只需发布您的代码并准确揭示您的问题:实际行为

和期望的行为。


-

您是否阅读过手册?
http:// www。 php.net/manual/en/



Personnaly I don''t really like any post beginning by "Have a look
there", etc.
Just post you code and expose precisely your problem : actual behaviour
and desired behaviour.

--
Have you read the manual?
http://www.php.net/manual/en/


这篇关于为什么URL会影响我的变量?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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