Dynadot โ€” .com Registration $8.99

Php problem... very strange

Spaceship Spaceship
Watch

Dario D.

Established Member
Impact
1
Hi all. I have a simple PHP layout: just a simple table split into several sections that call for other .php files (Header, Footer, Body, and Navigation).

The problem is that the footer image, for some reason, isn't loading its image hyperlinks (you know, those hyperlinks that you can draw on top of images)... and instead, it's loading the hyperlinks of the header. Very, very weird. Everything looks just fine in the editor (in Frontpage AND in Dreamweaver) but Firefox and IE are both sticking the header's hyperlink onto the footer image.

You can see what's going on here:
http://www.deefrag.com/acs/

Notice how the link in the footer matches the link in the header in every way (same position, size, and url). I can't figure out how to get rid of this. FP and DW show proper links for every button in the footer, but they aren't there.
 
Last edited:
0
•••
The views expressed on this page by users and staff are their own, not those of NamePros.
Unstoppable DomainsUnstoppable Domains
When I view the page source, I see that the generated page has an unintentional closing of the body and html tags (</body> and </html>) in the middle of the code, followed more code and an another close of these tags at the end of that code (where it should be).

It looks like those extra tags are at the end of your header - they should only be in the footer.

Sending the generated page through a validator (like the one at validator.w3.org) is a good way to track down those kind of problems.
 
0
•••
enlytend said:
When I view the page source, I see that the generated page has an unintentional closing of the body and html tags (</body> and </html>) in the middle of the code, followed more code and an another close of these tags at the end of that code (where it should be).

It looks like those extra tags are at the end of your header - they should only be in the footer.

Sending the generated page through a validator (like the one at validator.w3.org) is a good way to track down those kind of problems.

Same observation here. Check your HTML tags.
 
0
•••
Thanks. I ran it through validator, and this is what it spit out:

http://validator.w3.org/check?uri=http://www.deefrag.com/acs/

It highlights lots of ">" symbols. Am I supposed to move them over one space to the left, and close the gap? It seems like all the errors are strange gaps.

Also, it spits out this line that doesn't exist (below). In the actual file, there is no <html> at the end. Is that irrelevant, and put for a reason?
...s/template_02.gif" height="320"><html>

(btw, I didn't code the site. This is just standard Front Page stuff)
 
Last edited:
0
•••
Update: Well, I have no idea how to fix this - I'm not a coder.

Will adjusting those code issues fix the current problem? Again, I didn't create this code; it was generated by FrontPage, and working fine until this issue magically appeared all of the sudden.
 
0
•••
Any help is greatly appreciated.
 
0
•••
What you are using there is know as an image map. Typically when you see symptoms like this its because the coordinates are off. I believe this is happening because both image maps have the same name, <map name="FPMap0">, therefore some of the coordinates are overlapping.

Try this code for the bottom portion:

Code:
<td><map name="FPMap1">
<area href="about.php" shape="rect" coords="305, 35, 382, 65">
<area href="ourclients.php" shape="rect" coords="387, 33, 473, 69">
<area href="sitemap.php" shape="rect" coords="476, 33, 552, 68">
<area href="about.php" shape="rect" coords="710, 13, 878, 85">
</map><img border="0" src="skin/images/template_04.gif" usemap="#FPMap1"></td>
 
0
•••
Ah, that fixed it :) Thanks a lot.

That FPMap0 was indeed referring to the header. Strange that the problem randomly appeared after working fine for quite a while. I guess it's one of those random FrontPage issues.
 
0
•••
Great I am glad that fixed it! Have a good one!
 
0
•••
Appraise.net
Unstoppable Domains
Domain Recover
DomainEasy โ€” Live Options
  • The sidebar remains visible by scrolling at a speed relative to the pageโ€™s height.
Back