by default, php reports notices. it is good practice to define your variables, although pretty damn annoying for someone learning php because most php tutorials don't define variables. you will definately want to turn notice reporting off.
for example, even if you do this:
you will probably get a notice error because you didn't declare $i as a var. i know it probably doesn't seem like a big deal declaring every variable since you are coming from a vb background, but i'm sure 90% of the tutorials out there don't do it. there is really no need to do it with php.
register globals is another setting that is usually turned off. now this may be confusing, but it also relates to what you are talking about here. let's say you have notices turned off now. you will NOT get that error if you tried to print $YourName. but another thing you would notice is that NOTHING at all would print.
most web servers that you pay to host on has register globals turned on. this would allow you to get away with NOT using the $_POST or $_GET before any variable names you try to use that have been either submitted from a form or in the url. it is very good practice to use $_POST and $_GET for everything as i have learned in my experience so i always use them now.
so here is my recomendation. go to your php.ini file ( c:\windows\php.ini ) i think that's where it's at .. and change the error reporting line to the following:
Code:
error_reporting = E_ALL & ~E_NOTICE
i don't recommend it, but if you did want to turn register_global s on, do this
Code:
register_globals On
this may make following other tutorials easier for you for now.
once you make the changes, restart your web server.