Miko Posted November 4, 2009 Share Posted November 4, 2009 Hello, Not sure if i'm asking this on the correct location I'm quite new with jQuery so don't hit me if I'm asking something stupid . I'm trying to pass data to my mySQL database, but I'm doing that 2 jQuery scripts: User comes on my page where there is a list with some values, e.g 530, 532, 534 etc etc .. User clicks on one of them, this link is using the jQuery to get another php file which get's the data from my DB and list it below the first list, here's the code for this: $('#letter-e a').click(function(){ $.get('e.php', {'depot': $(this).text()},function(data){ $('#dict').html(data); }); return false }); So the second list is another step that can't be avoided to get the final result. In other words, i'ts another list where the user has to chose one of the items from the list to see the final result, I've added this code inf the 'e.php' file: $('#letter-f a').click(function(){ $.get('f.php', {'date': $(this).text()},function(data){ $('#entry2').html(data); }); return false }); The problem is that my 'f.php' only gets 1 variable value, but I'll need 2 or more (maybe in the futur), someone knows how to pass multiple variables to a php file using jQuery? Thanks Smile Quote Link to comment Share on other sites More sharing options...
Adam Posted November 4, 2009 Share Posted November 4, 2009 Click the examples tab, second example... http://docs.jquery.com/Ajax/jQuery.get Quote Link to comment Share on other sites More sharing options...
Miko Posted November 4, 2009 Author Share Posted November 4, 2009 Thanks! Quote Link to comment Share on other sites More sharing options...
Adam Posted November 4, 2009 Share Posted November 4, 2009 No probs. Mark it solved? 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.