Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums Back End Contact Me PHP Help Reply To: Contact Me PHP Help

#184186
smarty.rockz
Participant

So I need to add this in my html?

<script>
      $(function () {

        $('form').on('submit', function (e) {

          e.preventDefault();

          $.ajax({
            type: 'post',
            url: 'contact.php',
            data: $('form').serialize(),
            success: function () {
              alert('Your message has been sent. Thank you for contacting.');
            }
          });

        });

      });
    </script>