PHP5 and "isset"

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View
When "register globals" is set to "on," has anyone noticed if PHP
Version 5 affects the usage of "isset" or not?

For example, in a webpage form, should the following code:
if (!isset($ordernumber)) { $ordernumber = '123456'; } changed to this:

if (!isset($orderid) || $orderid==NULL) { $ordernumber = '123456'; }


Re: PHP5 and "isset"

Westcoast Sheri wrote:
Quoted text here. Click to load it

Use empty() to be on the safe side.


Site Timeline