does anyone know how to perform this?
I have a link on my page, when I click that button I want to POST to another page.
I do have a form on my page, but it's not in <form>
tags because the data is sent to the server with AJAX/POST (it's a search function, now I also want an export function but this requires me loading a separate page), so my loop collects all the input and stores it an object.
So basically, with GET things are very easy, but how do I pass the object with POST to another page? This should thus not use AJAX, it should go to the page as if it was a normal link.
A form without <form>
, is this possible?
Basically wondering if there's a function in JS like this:
window.location.url = ['export.php', $postData];