0 like 0 dislike
12 views
Hi all.
There is a need to make up a questionnaire, there are 3 steps.
Attached screenshots for clarity:

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??
| 12 views

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

0 like 0 dislike