Forums

PHP

This topic is locked

Why does PHKat put these lines of code in the file

Posted 15 Aug 2001 02:30:31
1
has voted
15 Aug 2001 02:30:31 crazy larry posted:
if ($QUERY_STRING) {
$MM_editAction = $MM_editAction . "?" . $QUERY_STRING;
}

1. it does not declare $QUERY_STRING
2. what does it do
3. can I delete it

Thanks

Replies

Replied 15 Aug 2001 12:22:55
15 Aug 2001 12:22:55 Tim Green replied:
<BLOCKQUOTE id=quote><font size=1 face="Verdana, Arial, Helvetica" id=quote>quote:<hr height=1 noshade id=quote>
1. it does not declare $QUERY_STRING
<hr height=1 noshade id=quote></BLOCKQUOTE id=quote></font id=quote><font face="Verdana, Arial, Helvetica" size=2 id=quote>
You're right it doesn't declare $QUERY_STRING
<BLOCKQUOTE id=quote><font size=1 face="Verdana, Arial, Helvetica" id=quote>quote:<hr height=1 noshade id=quote>
2. what does it do
<hr height=1 noshade id=quote></BLOCKQUOTE id=quote></font id=quote><font face="Verdana, Arial, Helvetica" size=2 id=quote>
It takes the existing content of $QUERY_STRING and adds more information to it.
<BLOCKQUOTE id=quote><font size=1 face="Verdana, Arial, Helvetica" id=quote>quote:<hr height=1 noshade id=quote>
3. can I delete it
<hr height=1 noshade id=quote></BLOCKQUOTE id=quote></font id=quote><font face="Verdana, Arial, Helvetica" size=2 id=quote>
This line appears in a couple of instances when you use specific behaviours, and it allows the UD generated scripts to pass values to other UD generated scripts, whilst preserving any values that you also might pass.
Deleting it will break any UD scripts that use it, so it's up to you, though it will also break Server Behaviours in the Server Behaviour Palette.

My advice to you would be to leave it well alone.

Tim Green

Extension & PHP TalkZone Manager
<font size=1>-------------------------------------------
<i>Please read the Forum FAQ before posting
a question to this TalkZone.</i>
-------------------------------------------
www.UDzone.com : A dynamic Dreamweaver,
Ultradev and Fireworks site for developers
by developers.
-------------------------------------------</font id=size1>

Reply to this topic