ajax


HTML FILE Where form exist function submitform(){ $.ajax({ type: “POST”, url: “process.php”, data: {param1 : ‘paramvalue1’, param2 : ‘paramvalue2’}, success: function( data ) { //  data returns response //  perform any action when request is success } }); } process.php <?php echo $_POST[‘param1′] .’+’. $_POST[‘param2’]; //  perform any action when […]

Ajax form post without refresh page very simple example