Jump to content

Pass part of URL to PHP to run script


ultraloveninja

Recommended Posts

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

  • 2 weeks later...

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.