Thursday, January 13, 2011

post data to other pages by ajax

Example :-
$.post('receive.php',$('form1').serialize(),function(result){
          //do something with result.
});


receive.php is a url where request is sent.
$('form1').serialize() is used to send the form1 data to the server with the request.
result it returns the result from the receive.php file.