How to customize a pop up form?

  • 0
    Here https: // greenteams. ru / lp2_partners / there are two buttons at the very beginning that open the modal window
    <div class="modal_container">
      <div class="modal">
        <h3>ЗАПОЛНИ ЗАЯВКУ ДЛЯ ВХОДА В ОФИЦИАЛЬНЫЙ ИНТЕРНЕТ МАГАЗИН КОМПАНИИ (ДОСТУП К ЦЕНАМ, КАТАЛОГУ, ДОСТАВКА, САМОВЫВОЗ)</h3>
        <div class="close">x</div>
        <form enctype="multipart/form-data" method="post" class="mail_form" action="https://greenteams.ru/lp2_partners/mail.php">
          <div class="form_wrap">
    				<input type="hidden" name="formtit" value="">
            <input type="hidden" name="formtype" value="1">
            <input type="text" placeholder="ФИО" name="name">
            <label class="input_label" for="date">Дата рождения</label>
            <input id="date" type="date" placeholder="Дата рождения" name="date" style="margin-top:0px;">
            <input type="text" placeholder="Ваш город" name="city">
            <input type="tel" placeholder="Ваш телефон*" name="phone">
            <input type="email" placeholder="Ваша почта*" name="email">
            <input type="submit" name="" value="Хочу попробовать">
                  </div>
    
        </form>
      </div>
    </div>


    so when you press the submit button the alert error objekt pops up

    But then the same piece of code jsfiddle.net/Evg82/pft5nqod is triggered and the form comes in the mail.

    I can't figure out where I made it.
    Collected as always from pieces)
    JavaScript Milo Hahn, May 27, 2019

  • 1 Answers
  • 0
    in your /phpmailer/smtpajax.php

    with an ajax request and an error from the server side, there is a piece with an alert

    alert ('error;' + eval (error));



    and the server responds with a 404 alert and popped up
    Anonymous

Your Answer
To place the code, please use CodePen or similar tool. Thanks you!