Image Map, SQL and PHP?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Heidi

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


  • Erwin Moller

    #2
    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)


    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


    Comment

    Working...