Hello forum:
Hope someone can help. I am using the following POST in my AJAX routine:
xmlhttp.open("POST","http://xxx.com/mm5/UpdateCarrier.php",true);
xmlhttp.setRequestHeader("Content-type","application/x-www-form-urlencoded");
xmlhttp.send("basket_id=307496&carrier=Roadrunner" );
This works OK with constants for basket_id & carrier but I need to use javascript variables in the send instead of constants. How should the send be coded to use my JS variables?
Thanks, Larry
Hope someone can help. I am using the following POST in my AJAX routine:
xmlhttp.open("POST","http://xxx.com/mm5/UpdateCarrier.php",true);
xmlhttp.setRequestHeader("Content-type","application/x-www-form-urlencoded");
xmlhttp.send("basket_id=307496&carrier=Roadrunner" );
This works OK with constants for basket_id & carrier but I need to use javascript variables in the send instead of constants. How should the send be coded to use my JS variables?
Thanks, Larry
Comment