> > 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 if ("Add" == $Task) { Do something } would always be fine - what am I missing? Martin -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php