'Alba', 1 => 'Arad', 2 => 'Argeş', 3 => 'Bacău', 4 => 'Bihor', 5 => 'Bistriţa-Năsăud', 6 => 'Botoşani', 7 => 'Brăila', 8 => 'Braşov', 9 => 'Buzău', 10=> 'Bucureşti', 11=> 'Călăraşi', 12=> 'Caraş-Severin', 13=> 'Cluj', 14=> 'Constanţa', 15=> 'Covasna', 16=> 'Dâmboviţa', 17=> 'Dolj', 18=> 'Galaţi', 19=> 'Giurgiu', 20=> 'Gorj', 21=> 'Harghita', 22=> 'Hunedoara', 23=> 'Ialomiţa', 24=> 'Iaşi', 25=> 'Ilfov', 26=> 'Maramureş', 27=> 'Mehedinţi', 28=> 'Mureş', 29=> 'Neamţ', 30=> 'Olt', 31=> 'Prahova', 32=> 'Sălaj', 33=> 'Satu Mare', 34=> 'Sibiu', 35=> 'Suceava', 36=> 'Teleorman', 37=> 'Timiş', 38=> 'Tulcea', 39=> 'Vaslui', 40=> 'Vâlcea', 41=> 'Vrancea' ); $services = array( array('name' => "Service si suport IT",'n'=>'s1',value=>0), array('name' => "Cablare structurata",'n'=>'s2',value=>0), array('name' => "Proiectare retea",'n'=>'s3',value=>0), array('name' => "Aplicatii software",'n'=>'s4',value=>0), array('name' => "Hosting",'n'=>'s5',value=>0), array('name' => "Gazduire server",'n'=>'s6',value=>0), array('name' => "Publicitate online",'n'=>'s7',value=>0), array('name' => "Design/Redesign site",'n'=>'s8',value=>0), array('name' => "Realizare retea Wi-fi",'n'=>'s9',value=>0), array('name' => "Optimizare SEO",'n'=>'s10',value=>0), array('name' => "Mentenanta ISP",'n'=>'s11',value=>0) ); $email = ""; $name = ""; $surname = ""; $company =""; $companysite =""; $phone =""; $address =""; $city =""; $state =""; $postal =""; $date = ""; $details =""; $service =""; foreach($services as $row => $value) { //echo $value['name']."+".$_POST[$value['n']]."+".$value['n']; if($_POST[$value['n']]=="checkbox") $services[$row]['value']=1; //echo $services[$row]['value']; } //var_dump($services); // var_dump($_POST); if(isset($_POST['email'])){ $email = $_POST['email']; } if(isset($_POST['name'])){ $name = $_POST['name']; } if(isset($_POST['surname'])){ $surname = $_POST['surname']; } if(isset($_POST['company'])){ $company = $_POST['company']; } if(isset($_POST['companysite'])){ $companysite = $_POST['companysite']; } if(isset($_POST['phone'])){ $phone = $_POST['phone']; } if(isset($_POST['address'])){ $address = $_POST['address']; } if(isset($_POST['city'])){ $city = $_POST['city']; } if(isset($_POST['state'])){ $state = $_POST['state']; } if(isset($_POST['postal'])){ $postal = $_POST['postal']; } if(isset($_POST['date'])){ $date = $_POST['date']; } if(isset($_POST['service'])){ $service = $_POST['service']; } if(isset($_POST['details'])){ $details = $_POST['details']; } $sent = false; if(isset($_POST['submit'])) if($_POST['submit']=="Trimite cerere") $sent = true; $testname = false; $testsurname = false; $testemail = false; $testcompany = false; $testcompanysite = false; $testphone = false; $testaddress = false; $testcity = false; $teststate = false; $testdate = false; $testpostal = false; $testservice = false; $testdetails = false; if($sent) { if($name=="") { $testname = true; } if($email=="") { $testemail = true; } if($surname=="") { $testsurname = true; } if($phone=="") { $testphone = true; } if($city=="") { $testcity = true; } if($state=="" || $state=="Alege judetul") { $teststate = true; } if(!($testname || $testsurname || $testcity || $teststate || $testphone || $testemail)) { $todayis = date("l, F j, Y, g:i a") ; $messages = " $todayis \n Nume: $name \n Prenume: $surname \n Email: $email\n Firma: $company \n Site Firma: $companysite \n Telefon: $phone \n Adresa: $address \n Oras: $city \n Judet: $state \n Termen: $date \n Cod Postal: $postal \n Detalii: $details \n Servicii: \n"; foreach($services as $row => $value) { //echo $value['name']."+".$_POST[$value['n']]."+".$value['n']; if($_POST[$value['n']]=="checkbox") $messages.=$value['name']."\n"; //echo $services[$row]['value']; } $messages.="Additional Info : IP = $ipi \n Browser Info: $httpagenti \n Referral : $httprefi \n "; $from = "From: $emailaddress\r\n"; mail($emailaddress, "Cerere oferta", $messages, $from); $email = ""; $name = ""; $surname = ""; $company =""; $companysite =""; $phone =""; $address =""; $city =""; $state =""; $postal =""; $date = ""; $details =""; $service =""; header( 'Location: http://test1.asynet.ro/confirmare.htm' ) ; } } ?> ASYnet - Cerere oferta servicii telecomunicatii  
 

Cerere oferta

   
  Campurile marcate in culoarea rosie sunt incorect completate
 
Numele companiei:  
 
/>  
/>  
 
/>  
 
 
/>  
/>  


 

Serviciul dorit

$value) {?>
: />
 

Detalii referitor la serviciul dorit:

/>
 
Campurile marcate cu * sunt obligatorii