You should probably use jQuery to send the form data via Ajax to your PHP script and when it returns no error trigger facebox to show up.
Something like this (not tested):
$("#the_form").on('submit', function(e){
e.preventDefault();
var data = $(this).serialize();
$.ajax({
type: "GET",
url: "process_form.php?"+ data
}).done(function(msg) {
if (msg=='success') { // have your php script return success or error or something like that after processing your data
$.facebox({ div: '#thanx' }); // make a div#thanx on your page and set the css display attribute to none (display:none;)
});
});
Op woensdag 9 mei 2012 21:05:04 UTC+2 schreef Nason House het volgende: