View Single Post
Old 06-03-2007, 08:06 PM   PM User | #4
djmonkey1
New Coder

 
Join Date: Mar 2006
Location: In an apartment.
Posts: 57
Thanks: 0
Thanked 0 Times in 0 Posts
djmonkey1 is an unknown quantity at this point
So I stuck with document.all and removed 'elements' from my function:

Code:
  function obtainTotals(data) { //this is used for processing/updating order totals
  
      // Set up data variable
    var formdata = "";
	
    // Loop through form fields
    for (i=0; i < data.length; i++)
    {
     
       formdata = formdata + data[i].name + "=" + escape(data[i].value) + "&";
         
    }
		
       makePOSTRequest('filename', formdata, 'totals');
  }//end function obtainTotals(obj) {
And.... it works the same way. The AJAX generated data doesn't show up in the $_POST array (or $_GET or $_SESSION for that matter).
djmonkey1 is offline   Reply With Quote