Answer the question
In order to leave comments, you need to log in
Why is the variable not being written?
The form has fields. All names are transmitted and sent by post, but only Static lines come.
<?php
header('Content-Type: text/html; charset=utf-8');
$headers .= 'Content-type: text/html; charset=utf-8' . "\r\n";
$name= $_POST["name"];
$tel = $_POST["tel"];
$mail = $_POST["mail"];
$city = $_POST["city"];
$comment = $_POST["comment"];
$message="
Имя:".$name."<br>
Тел:".$tel."<br>
Почта:".$mail."<br>
Город:".$city."<br>
Комментарий:".$comment."<br>
";
mail("[email protected]","Обратная связь",$message,$headers); ?>
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question