minifairy;11047673 wrote:So here is the question. The ajax request is directing to the area where the work is done with a POST why do I need to repeat all the input variables in the parameters, shouldn't they POST over there from the form?
No; the form isn't being POSTed by the browser, but by the AJAX request (e.g., the JavaScript function), so, the function needs to know what vars to POST, and that's why you give the values to it. JavaScript can read form values, of course; often this would be something like:
var value_from_form = document.getElementById('form_element_id']).value;
Does that F in front of the names the second time indicate field or what?
It's a variable. $F is a legal name for a JS variable, but so is "F" without the dollar sign, and typically JS programmers don't use the dollar sign unless it's some special value(for example, several of the large libraries (like jQuery) use "$" as the varname for their mega-object.
As for what it stands for here, I can't say for sure, but once the page is loaded you should be able to find out a little bit. Open your debugger and go into "console" and type $F and press enter. You could also do "console.log($F), I think.
And now for the biggie. is there some way to include variable named post fields in that parameter list. For example I have a group of checkboxes that will differ based on something someone put in on the previous AJAX form.
Not sure I'm understanding exactly. If the page is being generated by PHP and the server knows these variables and their values, you'd do it in the standard way. But you're saying that you've already submitted these via AJAX? On the same page?
If these values are still in the form, they can be read, as noted above. If they've already been submitted via AJAX, then you could probably place them in a JS object and re-use them later on the same page ...