B
B
byshyi462016-02-28 21:50:51
PHP
byshyi46, 2016-02-28 21:50:51

How to make a test in which the answers come to the mail?

Guys. How to make the test so that the answers (on a pop-up window) when you click the "ANSWER" button are sent to the mail and at the same time go to the next pop-up window?
Popup window:
adfff3bdb56f4910bf0df026f1a0ae60.png
Window shape:

<!--1-й блок теста-->
  <a href="#x" class="overlay" id="item1"></a>
    <div class="popup-test">
      <h3>ВОПРОС 1:</h3>
      <h5>ЧТО ТЫ ПРЕДПОЧИТАЕШЬ БОЛЬШЕ: РОЛЛЫ <br>ИЛИ ПИЦЦУ?</h5>
      <form action="#item2" class="form-test">
      <input type="radio" name="Q1" value="Я люблю пиццу!!!"/>Я люблю пиццу!!!<br />
      <input type="radio" name="Q1" value="Я люблю роллы ^-^"/>Я люблю роллы ^-^<br />
      <input type="radio" name="Q1"/><input type="text" name="Q1" placeholder="Другое.." autocomplete="off"><br />
      <center><button type="submit">ОТВЕТИТЬ</button></center>
      </form>
      <p><b>1</b> вопрос из <b>12</b></p>
      <center><div class="bar-test"><div class="bar" style="width: 25px;"><div class="circle"></div></div></div></center>
  </div>
  <!--2-й блок теста-->
  <a href="#x" class="overlay" id="item2"></a>
    <div class="popup-test">
    <h3>ВОПРОС 2:</h3>
      <h5>ЧТО ТЫ ПРЕДПОЧИТАЕШЬ БОЛЬШЕ: РОЛЛЫ <br>ИЛИ ПИЦЦУ?</h5>
      <form action="#item3" class="form-test">
      <input type="radio" name="Q1"/>Я люблю пиццу!!!<br />
      <input type="radio" name="Q1"/>Я люблю роллы ^-^<br />
      <input type="radio" name="Q1"/><input type="text" placeholder="Другое.." autocomplete="off"><br />
      <center><button type="submit">ОТВЕТИТЬ</button></center>
      </form>
      <p><b>2</b> вопрос из <b>12</b></p>
      <center><div class="bar-test"><div class="bar" style="width: 50px;"><div class="circle"></div></div></div></center>
  </div>

Answer the question

In order to leave comments, you need to log in

2 answer(s)
C
Cyber_bober, 2016-02-29
@byshyi46

very simple, add a form submission via ajax and set up a handler, for example, in php, so that it sends the result to the mail every time.

E
Evgeny Bakulin, 2016-02-28
@stranger2015

Everything can be easier ! :-)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question