$formular = ‘ Cod Promotional Daca nu aveti un cod promotional lasati liber Nume * Prenume * Telefon * Email * Alege Abonament: Standard 150 RON/an/abonament Business 120 RON/an/abonat (pt. companii cu minim 5 angajati abonati) Familie: 2 membrii -250 RON/an 3 membrii – 320 RON/an 4 membrii -350 RON/an 5 membrii – 400 RON/an * informatii obligatorii ‘; if($_POST[‘trimite’]){ $nume = $_POST[‘nume’]; $prenume = $_POST[‘prenume’]; $telefon = $_POST[‘telefon’]; $email = $_POST[’email’]; $cod = $_POST[‘cod’]; $abonament = $_POST[‘abonament’]; $membrii= $_POST[‘membrii’]; if($nume == “” || $prenume == “” || $telefon == “” || $email == “”){ echo(“ Te rog completeaza toate informatiile obligatorii altfel nu pot sa trimit mesajul tau! “); echo $formular; } else { $message = ‘ Cod Promotional ‘.$cod.’ Nume: ‘.$nume.’ Prenume: ‘.$prenume.’ Telefon: ‘.$telefon.’ Email: ‘.$email.’ Abonament: ‘.$abonament.’ ‘; $headers = ‘MIME-Version: 1.0’ . “\r\n”; $headers .= ‘Content-type: text/html; charset=iso-8859-1’ . “\r\n”; $headers .= “From: Apolloniadent.ro”; mail(“abonati@apolloniadent.ro”,”Abonament Apolloniadent.ro”,$message,$headers); echo(” Mesajul tau a fost trimis! In cel mai scurt timp vei fi contactat.”); } }else { echo $formular; }