gocondo Posted November 30, 2010 Share Posted November 30, 2010 This is just a warning when you switch to PHP 5.3, you'll start seeing NOTICE messages on your page if you access a variable which is not exist or initialize. For example $id=($_GET["id"]); if ($id='home) If there is no value to id because it's not part of the link, you'll get an error. These kind of notice messages are not shown in PHP 5.2. ~ Go Condo Toronto ~ Quote Link to comment https://forums.phpfreaks.com/topic/220246-php-53-varible-is-not-defined/ Share on other sites More sharing options...
ManiacDan Posted November 30, 2010 Share Posted November 30, 2010 You had those errors turned OFF in 5.2, and your upgrade reverted them back to the defaults. This is why the isset() function exists. Also, you typed this by hand, but you're using the wrong number of equals signs in your IF check, and unnecessary parens in your $_GET access. -Dan Quote Link to comment https://forums.phpfreaks.com/topic/220246-php-53-varible-is-not-defined/#findComment-1141385 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.