ultraloveninja Posted February 6, 2013 Share Posted February 6, 2013 I'm working on an interactive map and I am wondering if it's possible to pass part of a URL to a PHP script and have it look up information and then fetch it back to display within an iframe in a lightwindow? The map is CSS based and each the link on each state within the href contains the state name (e.g. - #statename). When a user clicks on the map, the #statename is appended to the URL. I'm wondering that if it's possible to pass that part of the URL (#statename) to PHP and have it run the script from there? Here's a link to the interactive map that I am working on. If you click on the state of Texas you'll see what I mean: http://sjdunham.com/beta/maptest/ I'm not too familiar with AJAX and JS all very much. I can get my way around jQuery but I'm not sure if there will be any conflicts with using Shadowbox in there already or what. Link to comment https://forums.phpfreaks.com/topic/274128-pass-part-of-url-to-php-to-run-script/ Share on other sites More sharing options...
ultraloveninja Posted February 19, 2013 Author Share Posted February 19, 2013 Never mind, I figured out a soluion by using a GET from the URL to pass to script. Link to comment https://forums.phpfreaks.com/topic/274128-pass-part-of-url-to-php-to-run-script/#findComment-1413455 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.