Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on May 8th, 2012  |  syntax: None  |  size: 1.42 KB  |  hits: 9  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. <?php
  2.  
  3.         $name           = $HTTP_POST_VARS['Name'];
  4.         $email          = $HTTP_POST_VARS['Email'];
  5.         $city           = $HTTP_POST_VARS['City'];
  6.         $province       = $HTTP_POST_VARS['Province'];
  7.         $distance       = $HTTP_POST_VARS['Distance'];
  8.         $street         = $HTTP_POST_VARS['Street'];
  9.         $homeno         = $HTTP_POST_VARS['Homeno'];
  10.         $flatno         = $HTTP_POST_VARS['Flatno'];
  11.         $telephone      = $HTTP_POST_VARS['Telephone'];
  12.         $defect         = $HTTP_POST_VARS['Defect'];
  13.  
  14.         $name           = stripslashes($name);
  15.         $email          = stripslashes($email);
  16.         $city           = stripslashes($city);
  17.         $province       = stripslashes($province);
  18.         $distance       = stripslashes($distance);
  19.         $street         = stripslashes($street);
  20.         $homeno         = stripslashes($homeno);
  21.         $flatno         = stripslashes($flatno);
  22.         $telephone      = stripslashes($telephone);
  23.         $defect         = stripslashes($defect);
  24.  
  25.         $sendTo = "zipekk@gmail.com";
  26.        
  27.         $subject = "Wiadomosc od www.pogotowieantenowe24h.pl";
  28.  
  29.         $msg_body  =    "Imię i Nazwisko: $name\n";
  30.         $msg_body .=    "Województwo: $province\n";
  31.         $msg_body .=    "Miasto: $city\n";
  32.         $msg_body .=    "Odległość od miasta na mapie: $distance\n";
  33.         $msg_body .=    "Ulica: $street\n";
  34.         $msg_body .=    "Numer Domu: $homeno\n";
  35.         $msg_body .=    "Numer Mieszkania: $flatno\n";
  36.         $msg_body .=    "Telefon: $telephone\n";
  37.         $msg_body .=    "Adres e-mail: $email\n";
  38.         $msg_body .=    "Opis usterki: $defect\n";
  39.  
  40.         $header_info = "From: ".$name." <".$email.">";
  41.  
  42.           echo mail($sendTo, $subject, iconv("UTF-8", "ISO-8859-2", $msg_body), $header_info);
  43. ?>