I am trying to send post data from from with empty action and send the info with javascript to the file that must handle the post information.
Here is my code:
You're quite lucky because there's a JQuery function called "Ajax" which handles this for you!
All you need to do is call JQuery, and use code like this:
$('#form_id').on('submit', function(e){
e.preventDefault();
$.ajax({
type: "POST",
url: "/postinfo.php",
data: $(this).serialize(),
success: function() {
alert('success');
}
});
});