Home › Forums › Back End › Post and Get data from JS to PHP › Re: Post and Get data from JS to PHP
February 18, 2013 at 5:17 pm
#125128
Member
I have no idea how to submit form with native js.
in jQuery you can use $.post or $.get
example:
$.post(‘process.php’, {field1: “value”, field2: “value”}, function(result){ //result is response from process.php, such as echo $value etc. });
hope it helps.