Facebook Twitter

Create an AJAX/jQuery/PHP Contact Form. This tutorial uses XHTML, CSS, jQuery and a little PHP to make a pop-up/modal contact form that validates whatever is entered into the form and then uses AJAX to send the form without refreshing the page.

Create an AJAX/jQuery/PHP Contact Form

Sounds complicated…actually it’s very simple!! The code of this tutorial has been updated. Fancybox - Fancy jQuery lightbox alternative. Lightbox 2. Have a feature request?

Lightbox 2

If you want a feature added, create an issue on Github. Someone else or I might be able to help out. jQuery lightbox for images, videos, YouTube, iframes, ajax. To open inline content, simply: Create a link (<a href=”#”>).

jQuery lightbox for images, videos, YouTube, iframes, ajax

Add the rel attribute “prettyPhoto” to it (rel=”prettyPhoto”). Change the href of your link so it is the ID of the inline content you want to open with the ID CSS selector (#). This is inline content opened in prettyPhoto. Tutoriel Vidéo jQuery : Réaliser une Pop-in avec jQuery. Créer des pop-up intelligentes.