Connecting Tech Pros Worldwide Help | Site Map

Image Map, SQL and PHP?

 
LinkBack Thread Tools Search this Thread
  #1  
Old July 17th, 2005, 10:47 AM
Heidi
Guest
 
Posts: n/a
Default Image Map, SQL and PHP?

I want to know if it is possible to make a server side image map that gets
the link data
from a database using PHP instead of a file.

Heidi

P.S. I have researched this myself but I have still come up empty...



  #2  
Old July 17th, 2005, 10:47 AM
Erwin Moller
Guest
 
Posts: n/a
Default Re: Image Map, SQL and PHP?

Heidi wrote:
[color=blue]
> I want to know if it is possible to make a server side image map that gets
> the link data
> from a database using PHP instead of a file.
>
> Heidi
>
> P.S. I have researched this myself but I have still come up empty...[/color]

Hi,

Yes you can.
You need 'serverside imagemaps'.

Look at this (second example)
http://www.cris.com/~automata/variety.htm

This is how it works:
1) use a serverside map.
2) Let the script (the a href-target) catch the X and Y coordinates.
3) Use some routine to decide what area is clicked. (I cannot help here)
4) lookup in your database what link you want.
5) redirect the browser to that link, simply by using headers.

Good luck.

Regards,
Erwin Moller


 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Popular Articles

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over 220,989 network members.