$catchError = email_send(); echo '
'; if($catchError == '') { // if `$_POST['SelectLang']` is NULL, then the language display will be the user lang. // The 3rd argument is `TRUE` to show a clickable Translate Id. echo ' '.lg('Email sent!', 'Admin', TRUE, $_POST['SelectLang']).''; } else { echo ' Error sending email: '.$catchError; }