I have an image on top of my logo image, used for login purposes in my index.html page.

The logo code works perfect in loading my index.html page when clicked on. The code -

<div id="Logo">
    <div id="lmenu5">
    <a href="Login.php"><img src="Images/Top Menu/Login.png" alt="Login or register." name="Login" width="130" height="43" id="Login" title="Login or register as a member." /></a></div>
    <div id="lmenu4"><img src="Images/Top Menu/Profile.png" alt="View your member profile." name="Profile" width="130" height="43" id="Profile" title="View your member profile and reports." /></div>
    <div id="lmenu3"><img src="Images/Top Menu/SearchAll.png" alt="Search all categories and members." name="SearchAll" width="130" height="43" id="SearchAll" title="Search all categories and members." /></div>
    <div id="lmenu2"><img src="Images/Top Menu/Faq.png" alt="View our frequently asked questions." name="FAQ" width="130" height="43" id="FAQ" title="View our frequently asked questions and member replies." /></div>
    <div id="lmenu1"><img src="Images/Top Menu/How.png" alt="View our how to tutorials." name="HowTo" width="130" height="43" id="HowTo" title="View our How To tutorials." /></div>
  <a href="AboutUs.html"><img src="Images/Logo/Logo.png" width="968" height="150" alt="Bid 4 anything Logo" /></a></div>

The same code is used when clicked on Login, it does not however load the php page.

Any ideas?

Dani AI

Generated

The markup itself was fine — testing it and the later successful server run strongly point to an environment issue rather than a broken anchor. Server-side pages (.php) must be served by a PHP-capable webserver; previewing files via a file:// URL or an editor preview that has no testing server configured will not execute PHP. See the PHP built-in server docs for a quick local test: PHP built-in web server.

Quick, practical checks and fixes:

  • Run a local server and open the page by HTTP (not file). From your project folder:

    php -S localhost:8000
    # then open http://localhost:8000/ in the browser

    Or use XAMPP/WAMP/MAMP and point Dreamweaver’s testing server to the local site URL. MDN’s intro to server-side workflow is a useful primer: Server-side basics.

  • Verify what the browser is actually loading: open DevTools → Network and Console to see HTTP status (404/500) or JS/CSS errors. That shows whether the link is hitting a server and what the response is.

  • Check other common gotchas: filename case (Linux hosts are case-sensitive), file placement (served folder vs local copy), file permissions, and accidental CSS/overlay blocking the click. If an overlay is intercepting clicks, temporarily allow clicks through with:

    .overlay { pointer-events: none; }

Because reported it worked on the real server, the most likely cause was Dreamweaver’s preview not using a configured testing server. Configuring a local testing URL (or using the PHP built-in server) will make the behavior consistent.

Recommended Answers

All 2 Replies

Works fine for me when I tested it on my local machine here. When you say it doesn't load, what exactly does it do? Nothing? Error page?

commented: For the "magic" of coding... +6

When I ran it via my server last night, it worked fine. It was in the testing environment in DW that it did not want to load. Seems all fixed now, "magically". I hate it when that happens.

Thanks anyway for replying, some kudos for you.;)

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.