beanymanuk Posted April 25, 2010 Share Posted April 25, 2010 In the code below the file demo_show.php is loaded how do I pass the url value $_GET['v']; to this file? <script type="text/javascript"> $(document).ready(function() { showrecords(); function showrecords() { $("#display").load("http://www.peter-gosling.com/tagit/people/demo_show.php?"); //Simple jquery load command, loads up demo_show.php document.getElementById('content').value=''; $("#flash").hide(); } </script> Quote Link to comment Share on other sites More sharing options...
F1Fan Posted April 25, 2010 Share Posted April 25, 2010 I'm not sure how to do it the jQuery specific way, but generally you just append it to the URL string, like this: <script type="text/javascript"> $(document).ready(function() { showrecords(); function showrecords() { $("#display").load("http://www.peter-gosling.com/tagit/people/demo_show.php?v=someValue"); //Simple jquery load command, loads up demo_show.php document.getElementById('content').value=''; $("#flash").hide(); } </script> Quote Link to comment Share on other sites More sharing options...
beanymanuk Posted April 25, 2010 Author Share Posted April 25, 2010 How would I put $_GET['v']; where the someValue is though? Quote Link to comment Share on other sites More sharing options...
F1Fan Posted April 25, 2010 Share Posted April 25, 2010 That doesn't make any sense. $_GET['v'] is a variable that has been passed through the URL string. Where are you getting $_GET['v']? 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.