E
E
Evgeny Kotikman2020-04-19 03:07:33
JavaScript
Evgeny Kotikman, 2020-04-19 03:07:33

The feedback form does not work, the site is on html without tsms, js is present. If so, you can’t tell me, I’ll pay for the time, help me?

The feedback form does not work, the site is on html without CMS. js is in the website folder. everything flashes, glows, clicks but does not send, and at least crack. If you can't advise, we can discuss payment. Thanks in advance. Christ is risen!
https://fsi.org.ua/startup.html
_
I am also looking for a layout specialist who will take the new me, thank God, not stupid, by the hand and help me finish my first project. I will do it myself, but online communication and presence are very necessary. One of the urgent tasks is to implement multilingualism ..)

Answer the question

In order to leave comments, you need to log in

1 answer(s)
E
Evgeniy, 2020-04-19
@Zheleznov

1) You need to create a mail.php file, with the code

<?php
$name = $_POST['name'];
$email = $_POST['email'];
$phone = $_POST['phone'];
$message = $_POST['message'];

$name = htmlspecialchars($name);
$email = htmlspecialchars($email);
$phone = htmlspecialchars($phone);
$message = htmlspecialchars($message);

$name = urldecode($name);
$email = urldecode($email);
$phone = urldecode($phone);
$message = urldecode($message);

$name = trim($name);
$email = trim($email);
$phone = trim($phone);
$message = trim($message);

if (mail("[email protected]", "Заявка с сайта", "Телефон: ".$phone." Сообщение: ".$message. "ФИО:".$name.". E-mail: ".$email ." . From: [email protected] \r\n"))
 {     echo "сообщение успешно отправлено";
} else {
    echo "при отправке сообщения возникли ошибки";
}?>

Throw this file in the root folder of the site:
/fsi.org.ua/
or
/fsi.org.ua/public_html/
on each hosting differently
2) You have a feedback form on the /startup.html page
- Form https://habrastorage.org/webt/sf/gd/jr/sfgdjr-gw6l ...
- Its code is https://habrastorage.org/webt/8c/td/x5/8ctdx5mxl85...
- In this place, you need to add the POST method - https://habrastorage.org/webt/io/a2/ax /ioa2ax5_io0...
<form action="mail.php" method="POST" class="form contacts-form">

now it is not registered, it is the post method, there is no
After that, everything should work
, nothing else needs to be connected anywhere,
I uploaded this form and this script to my site, everything is sent)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question