Letters without variable (PHP) feedback on the website. How to solve?

0 like 0 dislike
176 views 0 1
Hello! After sending the filled out questionnaire on the website by e-mail arrives without the variables. Please help solve the problem.
Form code not fully fit as the maximum amount of 10K (add in comments)

<?php/* Здесь проверяется существование переменных */if (isset($_POST['phone'])) {$phone = $_POST['phone'];}if (isset($_POST['name'])) {$name = $_POST['name'];}if (isset($_POST['email'])) {$email = $_POST['email'];}/* Сюда впишите свою эл. почту */$address = "mail@yandex.ru";/* А здесь прописывается текст сообщения, \ - перенос строки */$mes = "Тема: Заказ обратного звонка!\Телефон: $phone\Имя: $name\E-mail: $email";/* А эта функция как раз занимается отправкой письма на указанный вами email */$sub='Заказ'; //сабж$email='Заказ <vpluce.ru>'; // from whom $send = mail ($address,$sub,$mes,"Content-type:text/plain; charset = utf-8\\From:$email"); ini_set('short_open_tag', 'On'); header('Refresh: 3; URL=index.html'); ?>


Fill out the formAnswer all questions
it will not take You much time.

Fill out the form to 0%

Basic data

Your phone or e-mail *


The address of your site *


Select the required service *

Promotion on the Internet
asked by | 176 views

1 Answer

0 like 0 dislike

See the title fields in your form.
They clearly do not correspond to what is in the handler
answered by

Related questions

0 like 0 dislike
2 answers
0 like 0 dislike
3 answers
0 like 0 dislike
1 answer
0 like 0 dislike
2 answers
asked Oct 20, 2018 by Vikkiners
24,522 questions
45,948 answers
454 users