case 'confirmorder': ob_start(); $this->invoice(); $message = ob_get_flush(); htmlmail("Your order",$message,$this->username); $_SESSION["orderconfirmed"]="1"; break;