This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <? | |
| if (isset($_POST['action']) && !empty($_POST['action'])) { | |
| $action = $_POST['action']; | |
| switch($action) { | |
| case 'validate_domain': | |
| // If we're not passing in an email address, automatically return false. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $("#contact_form").validate({ | |
| submitHandler: function(form) { | |
| $.ajax({ | |
| type: "POST", | |
| url: "util/misc_func.php", | |
| data: { | |
| action: "validate_domain", | |
| email: $("#form_email").val() | |
| }, |