Is there any way to pass stuff from one page to another using the POST method without using forms.
Like in get you can just append a ?
with whatever you wan
One way is to use JavaScript to submit an invisible form. HTML:
JavaScript (jQuery):
$("#my-button").click(function(e) {
$("#my-form").submit();
});
You could also use a link ( tag) instead of a button, etc.
This will make the browser go to the other page. If you want to stay on the current page and just post some data in the background, use the ajax functions in jQuery or similar libraries.