From: "Martin Peck" <[EMAIL PROTECTED]> > > > That can generate an error if $Task was never assigned a value. > > > > > > > could you not do > > > > if(@$Task == "Add" ){do something } > > > > to suppress the error of the variable not being set? > > I have never seen php give an error if $Task is not set to anything. I > would have said that
It would give an error if you have your error reporting set accordingly. Search the archives for the difference between "works" and "right" (or the next issue of PHP|Architect) :) ---John Holmes... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php