M
M
Markel Leps2014-08-23 01:38:25
PHP
Markel Leps, 2014-08-23 01:38:25

How to change the order form for yourself?

how to change such a form correctly, so that the application would come to my mail, I created a php file in a separate folder, with a form to send to soap!
but something goes wrong, tell me, here is the source code of the form.

<b><a href="#" class='order crm_button button_buy_pricing' data-form-id="01f3ee54954811e3b6161b9215e16d83">купить со скидкой</a>
</b>

and here is my code in the php file, how to assemble it all? I'm trying, something is crooked!
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<META HTTP-EQUIV="" CONTENT="2; URL=http://ray-boutique.ru/">
<link rel="shortcut icon" href="favicon.ico"> 		
<link rel="stylesheet" type="text/css" href="../style.css" />
<link rel="stylesheet" type="text/css" href="../component.css" />
<title>Спасибо!</title>
</head>
<body>
<?php
$myaddr = "[email protected]";

if (isset($_POST['call-control']) && $_POST['call-control'] == 0){
  $name = $_POST['name'];
  $number = $_POST['number'];
  $area = $_POST['area'];
  

  $headers = "MIME-Version: 1.0\r\n";
  $headers.= "Content-Type: text/plain;charset=utf-8";
  $subj = "=?utf-8?b?".base64_encode('Заказ')."?=";
  $text = "Имя: ".$name." \nТелефон: ".$number." \nСообщение: ".$area;
  mail($myaddr, $subj, $text, $headers);
  echo '<div class="thanks">
<span class="big">СПАСИБО ЗА ОСТАВЛЕННУЮ ЗАЯВКУ!</span></br>
<span class="small">Наш менеджер свяжется с вами в ближайшее время.</span>
<a href="/111">
<div class="back">
ВЕРНУТЬСЯ НА САЙТ
</div>
</a>
<img src="http://pixel.afrek.ru/?goid=1480&iid=22" width="1" height="1"/>
</div>';
  
  } else {echo "Нет ПОСТА";} 
  ?>
  </body></html>

Answer the question

In order to leave comments, you need to log in

1 answer(s)
K
Konstantin Andreevich, 2014-08-23
@reffy

There is no form code in the piece of code you attached. If you need to change the e-mail to which letters are received, then edit it in the line:
$myaddr = "[email protected]";

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question