Forum Moderators: coopster
Notice: Undefined variable: YourName in c:\apache\apache\htdocs\bad_words.php on line 8
Any help would be greatly appreciated.
Eric
$_POST['YourName'] if you use the POST method and
$_GET['YourName'] if you use the GET method.
I may be mistaken but I think the register globals flag used to be set to on automatically but that got changed somewhere around PHP 4. The effect of setting this flag to true is to allow you to use $YourName instead of one of the above two references, but it is normally better to use the longer notation above.
If you have installed PHP on your home machine the register globals flag should be in your php.ini file somewhere; if this is set to true you can refer to your form variables without the $_POST and $_GET syntax.
However I suggest you take a look at this URL (which I hope the administrators don't mind if I post here) from the PHP site [au3.php.net ], before you decide to change it. Apparently there are a few security concerns with having the flag set to true.
Good luck with your PHP :)