Created
April 28, 2017 02:23
-
-
Save mahbub-shohag/eb827d1abfebb5e484336389d71d913d to your computer and use it in GitHub Desktop.
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
jquery part | |
$('#registration_form').on('submit',function(e){ | |
e.preventDefault(); | |
var datastring = $(this).serialize(); | |
$.ajax({ | |
method : "GET", | |
url : "<?php echo base_url(); ?>Main/submit_registration_form", | |
data: {datastring:datastring} | |
}) | |
.done(function(msg){ | |
alert(msg); | |
}); | |
}); | |
php part | |
public function submit_registration_form(){ | |
parse_str($_GET['datastring'], $searcharray); | |
echo $searcharray['date_of_birth']; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment