I may be missing some crucial detail here, but is there any reason why you can't use a form tag, using get or post method as desired, and putting any data needed for each form submission in type="hidden" input tags -- no need for JavaScript, etc., just basic HTML generated from the PHP that displays the page?