It is a way better practice if we use do not use register_globals. If you try to avoid this error you will have to go through lots of change. though you are beginner which mean you are learning. I would suggest you to remove the line from your php code.
now what does it do:
Say you have a from with two input field name and age. when you submit and if your register_globals function is called your php will create two variable name: $name, $age and will set the value from the form field. example:
<form method="get">
<input name="name">
<input name="age">
<input type="submit">
</input></input></input></form>
you will also get a variable name $submit
now what's wrong with this:
a request can come in two way :
1. POST Method
2. GET Method
in both case register_globals will create variabls. but you would never know how it came. is this a problem? in cases it is. but read more you will get more problem
Register_globals also register $_SESSION, $_COOKIE, $_HEADER, $_ENV
So perhaps your data will easily be overlapped with other data. Actually one data will be lost.
what would you use instead of register_globals?
$_GET for get method
$_POST for post method
$_SESSION for session data; it also has other related function
$_COOKIE for cookie data; it also has other related function
$_HEADER for header data
$_ENV for environment related data