troubleshooting Question

Ajax varilables using php load to next page

Avatar of catonthecouchproductions
catonthecouchproductionsFlag for United States of America asked on
JavaScriptPHP
17 Comments1 Solution402 ViewsLast Modified:
When you go to this page: http://www.newspapersofamerica.com/new/?p=calc-spa-d

And play with the drop down, the values are being loaded via AJAX, here:

// USED FOR DISPLAY SPA
var currentIdD = -1;
var tIdD       = "";
function showPriceD() {
  var theForm = document.forms[1];
  var selD = theForm.state_id;
  var idD = theForm.state_id.value;
  if (currentIdD == idD) return; // not changed
  currentIdD=idD;
  var stateD = selD.options[selD.selectedIndex].text;
  var priceD = theForm.price.value;
  var sizeD = theForm.size.value;
  var paper_nameD = theForm.paper_name.value;
  var locD = 'spaPricesD.php?state_id='+idD+'&price='+priceD+'&size='+sizeD+'&paper_name='+paper_nameD;
  document.getElementById('GroupPrice').innerHTML= 'Loading prices for '+stateD+'...';
  window.if1.location=locD;
}

The link I sent above, after form is filled out and on submit it goes to the confirm page, since my other form variables that ARENT using ajax and loaded via mysql in to PHP variables.

I need to find a way to get:

state_jd
price
size
paper_name

To the PHP page, another example not using AJAX is here:

http://www.newspapersofamerica.com/new/index.php?p=calc-d&id=1

Same idea.

Any ideas?

Thanks,

Ryan
ASKER CERTIFIED SOLUTION
mettletechnlogies

Our community of experts have been thoroughly vetted for their expertise and industry experience.

Join our community to see this answer!
Unlock 1 Answer and 17 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 17 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros