Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums Back End Post and Get data from JS to PHP Re: Post and Get data from JS to PHP

#125128
mweldan
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.