Parent page displays graphic/link IF file there?

Discussion in 'Web Design and Development' started by Les Kern, Oct 29, 2007.

  1. Les Kern macrumors 68040

    Les Kern

    Joined:
    Apr 26, 2002
    Location:
    Alabama
    #1
    Is this possible?
    Lets say I have a page, "index.html", and on that page is a cell for a graphic-as-link (or even just a text link) that will be enabled and visible ONLY if a page it's pointing to is present? Rather NOT have a 404 show up.
     
  2. rajfantastic macrumors member

    rajfantastic

    Joined:
    Jun 9, 2007
    #2
    you will need to use php includes and if statements.
     
  3. Les Kern thread starter macrumors 68040

    Les Kern

    Joined:
    Apr 26, 2002
    Location:
    Alabama
    #3
    That's what I came up with so far as well. Unfortunately this is html gnerated from an application. Might look and see if it can be done with code from that app... should be able to..
     

Share This Page