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
Share on other sites

  • 2 weeks later...
This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.