Posted by mike on 12/07/05 00:48
If this is my first bit of code:
if ($var == "value") {
do something
}
and $var isn't defined in the url string, or via a FORM post or hidden
variable then is this the reason why I keep getting errors like this?
[Tue Dec 6 10:02:51 2005] [error] PHP Notice: Undefined variable: var in
/usr/home/mike/index.php on line 3
which are apparently causing my server to crash? does $var need to be
defined before I can use it in a if statement? ie myurl/index.php?var=blah
Navigation:
[Reply to this message]
|