A
Anonymous
Guest
you test if $add == "yes", but where does add get set? Seems like if it's an undefined variable, it is not getting set above the code you put into the msg.
perhaps make your if something like:
if(!empty($add) && $add == "yes") {
that will test to make sure it is set, is not empty and is equal to yes.
perhaps make your if something like:
if(!empty($add) && $add == "yes") {
that will test to make sure it is set, is not empty and is equal to yes.