If you know the amount of variables you're submitting to your script stay the same you can put some hidden fields in the form and then set them with javascript. E.g say you need two values sending, in your form have:
<form action="blah blah" name="myform">
<input name="hidingfella1" type="hidden" value="just hiding so far 1">
<input name="hidingfella2" type="hidden" value="just hiding so far 2">
</form>
Then in a later piece of javascript (called via an onsubmit, onclick or whatver you need do:
document.myform.hidingfella.value="I like chicken";
document.myform.hidingfalla.value="oh yeah, chicken is great!";
That's the only way I know how to do it. Does anyone know if you can just squirt data straight into a $_POST type thing and then submit with javascript as I've tried to add elements to a form post page load but it's not having it.
I know this isn't truly php, but it is for a php receiver - so I'm safe, goddam yoOoO.