I’m looking for the simplest way to use the POST method for passing parameters from javascript/jquery on one page to PHP on another page.
I should mention that both pages are PHP templates for wordpress pages, but I guess it shouldn’t matter.
Would appreciate examples for code on both sides.
edit 1
incase you want to specify your own parameters to send then use:
Edit 2: if you only want to post your own parameters to a page (no ajax. simple POST which will open the page then do the following)
call like this:-
code taken from answer on JavaScript post request like a form submit