You are getting 'Notices' which shouldn't terminate your script and are different from errors. These types of Notices usually mean you're trying to use a string without quotes or you're just defining a constant incorrectly. In your code I also noticed:
if ( isset($_SESSION['url']) && $_SESSION['url'] != $SITE_URL ) {
Where is $SITE_URL defined?
- I'm still not seeing where 'RRP' and 'MORE_*****' are being defined. They should be in one of your include files.
- When posting code, please place your code inside
tags for syntax highlighting, formatting and general readability.
- The link you posted in your first post doesn't work, or at least we can't see the script you're trying to implement.