Jump to content

Guess I've been getting away with this - but would like to fix it please


jayteepics

Recommended Posts

Just set up a new wamp environment and in this new [stricter] environment I'm getting masses of warnings I never saw before (mea culpa):-

 

e.g.

 

Use of undefined constant name - assumed 'name' in C:\wamp\www...

 

This is the sort of thing I have coded..

 

$_SESSION['address'][name] = $name;

then later....

$name = $_SESSION['address'][name];

 

Should this be changed to...

 

$_SESSION['address']['name'] = $name;

and...

$name = $_SESSION['address']['name'];

 

Jamie

 

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.