wwfc_barmy_army Posted June 7, 2008 Share Posted June 7, 2008 Hello. I have the following code for an ajax fuction: var a1 = document.getElementById('1').value; var b2 = document.getElementById('2').value; var queryString = "?a1=" + a1 + "&b2=" + b2; ajaxRequest.open("GET", "updatedetails.php" + queryString, true); ajaxRequest.send(null); } //--> </script> Although the problem is that i need to be able to change the variables. So for example, i could need a1-j10 or something like that, but this is got from the database, my question is how could i update it from my mysql database? Thanks. Quote Link to comment Share on other sites More sharing options...
hansford Posted June 10, 2008 Share Posted June 10, 2008 just have php echo out all of the javascript. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.