Answer the question
In order to leave comments, you need to log in
How to send data from php script connected via ajax?
There is a page to which I connect using Ajax php a page with forms and sending some data to the database. There are no connection problems, but there is a problem with sending data. If you send data directly from the script page, then everything works, but if you send data from the page to which Ajax output is sent, then when sending the page, it simply updates and does not send data to the database.
Here is the connection to the page:
$(function(e){
$('#edit').click(function(){
$.ajax({
type: "POST",
url: 'profiles/file.php',
success: function(data) {
$('#result').html(data);
}
});
});
});
Answer the question
In order to leave comments, you need to log in
And what do you accept on the side of the php file? Why is there no data parameter in ajax request? What does the console say?
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question