You will have to learn to make use of the Super Global Arrays, and work out which array contains what information.

Alternatively, you could also change your php.ini file and set the register globals setting to On, and then you wouldn't need the Arrays, you can just access $REMOTE_ADDR just like that!

I do have to point out its less secure that the SGA's, and there's also a strict order in which the variables are accessed (in case you have a GET, POST, SESSION, COOKIE, AND SERVER variable all with the same name!!!)

Have a look at the line where the error occurs, and the lines immediately preceeding it (because an error on an earlier line might show up later). Read the message carefully, what does it say? Have a look for any possible cause.

By the way, the SGA for post is $_POST, not $POST! It's the same format with the rest! And you can use the SGA's with or without the register_globals setting from PHP 4.1.0 onwards!