How to create a poll with sending points of the client's response to the post?


Warning: count(): Parameter must be an array or an object that implements Countable in /home/styllloz/public_html/qa-theme/donut-theme/qa-donut-layer.php on line 274
0 like 0 dislike
8 views
Hi all.
There is a need to make up a questionnaire, there are 3 steps.
Attached screenshots for clarity:5ae9c7186a9af955430300.jpeg5ae9c72073b53347589947.jpeg5ae9c728cfbf1570118540.jpeg

To submit the form in the mail, I always use ajax:
Code:

$(document).ready(function () {
$("#form").submit(function () {
$.ajax({
type: "POST"
url: "mail.php"
, data: $(this).serialize()
}).done(function () {
$(this).find("input").val(");
$("#form").trigger("reset");
$.fancybox.open($("#pop"));
setTimeout(function () {
$.fancybox.close();
}, 1500);
});
return false;
});
});
The file which migrates email:(php is not strong)
Code:
<?php<br/>
$recepient = "email@com";
$sitename = "site Name";

$name = trim($_POST["name"]);
$phone = trim($_POST["phone"]);
$text = trim($_POST["text"]);
$message = "Name: $name \\Telefon: $phone \\text: $text";

$pagetitle = "New request from the site \\"$sitename\\";
mail($recepient, $pagetitle, $message, "Content-type: text/plain; charset=\\"utf-8\\"\ From: $recepient");

How is it possible to make the transition to the next question?
How is this possible to implement with the responding customer in the mail??
Please tell me.
by | 8 views

1 Answer

0 like 0 dislike
It will be one form, so your creaking can be adapted to the form. The steps can be done for example using this www.jquery-steps.com/Examples
by
110,608 questions
257,186 answers
0 comments
35,536 users