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> Link to comment https://forums.phpfreaks.com/topic/199694-loading-php-and-passing-php-get-url-value/ 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> Link to comment https://forums.phpfreaks.com/topic/199694-loading-php-and-passing-php-get-url-value/#findComment-1048137 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? Link to comment https://forums.phpfreaks.com/topic/199694-loading-php-and-passing-php-get-url-value/#findComment-1048138 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']? Link to comment https://forums.phpfreaks.com/topic/199694-loading-php-and-passing-php-get-url-value/#findComment-1048156 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.