Organizatori: Universitatea din Craiova - INCESA

"; print_r($_POST); echo ""; $submit_form = true; // Get all the form variables sent by post and then clean this variables $name = clean_html_code($_POST["name"]); $facultate = clean_html_code($_POST["facultate"]); $an = clean_html_code($_POST["an"]); $email = clean_html_code($_POST["email"]); $phone = clean_html_code($_POST["phone"]); $agreement = clean_html_code($_POST["agreement"]); $captcha = clean_html_code($_POST["captcha"]); // Check only required post variables values if (!UtilitiesStrings::min_string_length($name, 3)) { $errors[] = "Numele dvs. trebuie să conţină minim 3 caractere."; } if (!UtilitiesStrings::min_string_length($facultate, 3)) { $errors[] = "Numele facultății trebuie să conţină minim 3 caractere."; } if (!UtilitiesStrings::min_string_length($an, 1)) { $errors[] = "Anul de studii trebuie să conţină minim 1 caracter."; } if (empty($_POST["email"]) || !UtilitiesStrings::validate_email($email)) { $errors[] = "Vă rugăm să specificaţi o adresă de e-mail validă."; } if (!empty($_POST["phone"]) && !UtilitiesStrings::validate_phone($phone)) { $errors[] = "Vă rugăm să specificaţi o adresă de e-mail validă."; } //include_once(ROOT_DIR . "lib/vendors/securimage/securimage.php"); $securimage = new Securimage(); if ($securimage->check($captcha) === false) { $errors[] = "Codul anti-spam este incorect."; } //echo "
"; print_r($errors); echo "
"; $error_submission = count($errors) > 0; // In no errors found, send e-mail if (!$error_submission) { $template_content .= "

Nume, prenume: $name

"; $template_content .= "

Facultate, secție: $facultate

"; $template_content .= "

Anul de studii: $an

"; $template_content .= "

Email: $email

"; if (!empty($phone)) { $template_content .= "

Telefon: $phone

"; } if (isset($_POST['agreement'])) { $template_content .= "
"; $template_content .= "

Sunt de acord să fiu contactat în legătură cu programul ProElite.

"; } echo "$template_content
"; class ExceptEmailSent extends Exception { } try { // Send email if (mail_to( "info@incesa.ro", $name, array("info@incesa.ro"), "incesa.ro - cerere de inregistrare ($name)", build_template_frame( $__ws, array( "template_content" => $template_content, //"track_details"=>true, )))) { // Email was sent successfully //echo "
Email was sent successfully
"; $register__message_sent = true; } else { //throw new ExceptEmailSent(); //echo "
throw new ExceptEmailSent()
"; $register__message_sent = false; $phpmailer_response = "Din motive tehnice e-mailul de notificare nu a putut fi trimis!"; } } catch (phpmailerException $e) { //echo "
" . $e->getMessage() . "
"; $phpmailer_response = $e->getMessage(); } catch (ExceptEmailSent $e) { //echo "
" . $e->getMessage() . "
"; $phpmailer_response = $e->getMessage(); } } else { foreach ($errors as $error){ ?>
×
× Ne cerem scuze dar a apărut o eroare pe serverul nostru şi datele introduse nu au fost trimise.
Încercaţi mai târziu şi, dacă persistă eroarea, contactaţi-ne!
CAPTCHA Image Refresh Image
× Ați fost înregistrat în vederea participării la Concursul de selecție pentru programul ProElite”!