SHARE
TWEET

Untitled

Yggdrasills Apr 24th, 2019 101 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php
  2. $age=$_POST['age'];
  3. $mim=$_POST['mim'];
  4. $skin=$_POST['skin'];
  5. $zone=$_POST['zone'];
  6. $exp=$_POST['exp'];
  7. $view=$_POST['view'];
  8. $negatives=$_POST['negatives'];
  9. $emotion=$_POST['emotion'];
  10. $intensive=$_POST['intensive'];
  11. $sculpture=$_POST['sculpture'];
  12. $time=$_POST['time'];
  13. $name=$_POST['name'];
  14. $phone=$_POST['phone'];
  15. $email=$_POST['email'];
  16.  
  17. $headers = "Content-type: text/html; charset=utf-8 \r\n";
  18. $headers .= "From: Site <noreply@q.ru>\r\n";
  19. $thm = "Заявка с сайта quiz";
  20.  
  21.  
  22.  
  23.  
  24.  
  25.     $message = '<table align="center" cellpadding="0" cellspacing="0" width="500" style="border-collapse: collapse; margin: 0 auto; font-family: "Helvetica Neue","Helvetica",Helvetica,Arial,sans-serif; border: 1px solid #333;"><tr><th style="border: 1px solid #333; background-color: #333; text-align: center; padding: 10px;" colspan="2"><h1 style="color: #fff; font-size: 18px; margin: 0; padding: 0;">'.$thm.'</h1></th></tr>';
  26.     $message .= '<tr><td width="200" style="border: 1px solid #333; font-size: 14px; line-height: 18px; padding: 5px;">Имя</td>';
  27.     $message .= '<td width="200" style="border: 1px solid #333; font-size: 14px; line-height: 18px; padding: 5px;">'.$name.'</td></tr>';
  28.  
  29.     $message .= '<tr><td width="200" style="border: 1px solid #333; font-size: 14px; line-height: 18px; padding: 5px;">Телефон</td>';
  30.     $message .= '<td width="200" style="border: 1px solid #333; font-size: 14px; line-height: 18px; padding: 5px;">'.$phone.'</td></tr>';
  31.    
  32.     $message .= '<tr><td width="200" style="border: 1px solid #333; font-size: 14px; line-height: 18px; padding: 5px;">Возраст</td>';
  33.     $message .= '<td width="200" style="border: 1px solid #333; font-size: 14px; line-height: 18px; padding: 5px;">'.$age.'</td></tr>';
  34.    
  35.     $message .= '<tr><td width="200" style="border: 1px solid #333; font-size: 14px; line-height: 18px; padding: 5px;">E-mail</td>';
  36.     $message .= '<td width="200" style="border: 1px solid #333; font-size: 14px; line-height: 18px; padding: 5px;">'.$email.'</td></tr>';
  37.    
  38.     $message .= '<tr><td width="200" style="border: 1px solid #333; font-size: 14px; line-height: 18px; padding: 5px;">Мимические морщины</td>';
  39.     $message .= '<td width="200" style="border: 1px solid #333; font-size: 14px; line-height: 18px; padding: 5px;">'.$mim.'</td></tr>';
  40.    
  41.     $message .= '<tr><td width="200" style="border: 1px solid #333; font-size: 14px; line-height: 18px; padding: 5px;">Ваша кожа</td>';
  42.     $message .= '<td width="200" style="border: 1px solid #333; font-size: 14px; line-height: 18px; padding: 5px;">'.$skin.'</td></tr>';
  43.    
  44.     $message .= '<tr><td width="200" style="border: 1px solid #333; font-size: 14px; line-height: 18px; padding: 5px;">Беспокоющие зоны лица</td>';
  45.     $message .= '<td width="200" style="border: 1px solid #333; font-size: 14px; line-height: 18px; padding: 5px;">'.$zone.'</td></tr>';
  46.    
  47.     $message .= '<tr><td width="200" style="border: 1px solid #333; font-size: 14px; line-height: 18px; padding: 5px;">Опыт посещения подобных процедур</td>';
  48.     $message .= '<td width="200" style="border: 1px solid #333; font-size: 14px; line-height: 18px; padding: 5px;">'.$exp.'</td></tr>';
  49.    
  50.     $message .= '<tr><td width="200" style="border: 1px solid #333; font-size: 14px; line-height: 18px; padding: 5px;">Как поддерживаете внешний вид</td>';
  51.     $message .= '<td width="200" style="border: 1px solid #333; font-size: 14px; line-height: 18px; padding: 5px;">'.$view.'</td></tr>';
  52.    
  53.     $message .= '<tr><td width="200" style="border: 1px solid #333; font-size: 14px; line-height: 18px; padding: 5px;">Противопоказания</td>';
  54.     $message .= '<td width="200" style="border: 1px solid #333; font-size: 14px; line-height: 18px; padding: 5px;">'.$negatives.'</td></tr>';
  55.    
  56.     $message .= '<tr><td width="200" style="border: 1px solid #333; font-size: 14px; line-height: 18px; padding: 5px;">Эмоциональное состояние</td>';
  57.     $message .= '<td width="200" style="border: 1px solid #333; font-size: 14px; line-height: 18px; padding: 5px;">'.$emotion.'</td></tr>';
  58.    
  59.     $message .= '<tr><td width="200" style="border: 1px solid #333; font-size: 14px; line-height: 18px; padding: 5px;">Почему интересен массаж лица</td>';
  60.     $message .= '<td width="200" style="border: 1px solid #333; font-size: 14px; line-height: 18px; padding: 5px;">'.$intensive.'</td></tr>';
  61.    
  62.     $message .= '<tr><td width="200" style="border: 1px solid #333; font-size: 14px; line-height: 18px; padding: 5px;">Идеальный мастер</td>';
  63.     $message .= '<td width="200" style="border: 1px solid #333; font-size: 14px; line-height: 18px; padding: 5px;">'.$sculpture.'</td></tr>';
  64.    
  65.     $message .= '<tr><td width="200" style="border: 1px solid #333; font-size: 14px; line-height: 18px; padding: 5px;">Свободное время</td>';
  66.     $message .= '<td width="200" style="border: 1px solid #333; font-size: 14px; line-height: 18px; padding: 5px;">'.$time.'</td></tr>';
  67.    
  68.     $message .= '</table>';
  69.  
  70.  
  71.  
  72.  
  73.  
  74.  
  75. $mail_to="angry_smile@inbox.ru";
  76. mail($mail_to, $thm, $message, $headers);
  77. ?>
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top