Undefined variables
Posted: Mon Mar 24, 2003 10:10 am
Before anyone says anything, I've read through this whole thread, and another couple about poassing Post & GET variables... however no-one has ever mentioned what you do if you have an undefined variable...
For example:
I've created what I call modules, and depending on the _Post variable $command it includes a specific file, which does an action. However, if you are opening the "page" for the first time, the command varilable is purposefully blank.
This worked under the previous php versions, however with register globals in the new setting, is says that the index is undefined.
Is there a way around this? Please!
For example:
I've created what I call modules, and depending on the _Post variable $command it includes a specific file, which does an action. However, if you are opening the "page" for the first time, the command varilable is purposefully blank.
This worked under the previous php versions, however with register globals in the new setting, is says that the index is undefined.
Is there a way around this? Please!