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

0 like 0 dislike
69 views
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)
5bf05ae0e43d9909003592.jpeg

Send.php:
<?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'); ?>


(Index.php):

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

Fill out the form to 0%

Basic data

Your phone or e-mail *

image

The address of your site *

image

Select the required service *

Promotion on the Internet
image
asked by | 69 views

1 Answer

0 like 0 dislike
php.net/manual/ru/language.variables.external.php
\rphp.net/manual/ru/tutorial.forms.php

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,509 questions
45,931 answers
0 comments
257 users