Linking problem

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
ptityop
Forum Newbie
Posts: 13
Joined: Thu May 07, 2009 1:48 pm

Linking problem

Post by ptityop »

Hi,

I have an issue with a banner I integrated in a page (http://hostelsuites.com) if you go to the page you'll see a banner on the left side , called "Combo Andes". The problem I am encountering is that this banner is linking to inside pages, and it works all fine for me but does not on some other computers, although they are using the same explorer or firefox versions....

I have no idea as to what could trigger this type of error, any help would be muche welcome.

Some details that might help :
The link is winthin the flash movie
The code that brings the banner up depending on the chosen language is

Code: Select all

<div class="subtitulo"><?= ucfirst($lang["combomendoza"]) ?></div>


Thank you very much in advance
User avatar
califdon
Jack of Zircons
Posts: 4484
Joined: Thu Nov 09, 2006 8:30 pm
Location: California, USA

Re: Linking problem

Post by califdon »

You are using what is called "short tags" in that example, which is not good PHP coding practice. It works on servers that are configured for it, but not all servers are. I would recommend replacing that line (and all similar lines) with:

Code: Select all

<div class="subtitulo"><?php echo "ucfirst($lang['combomendoza'])" ?></div>
That may not affect the problem you're having, but it's still a good thing to do. And I always start trying to solve a problem by eliminating all the odd things that I know are wrong.

Your link actually is not within the Flash movie, the movie is within the link, so I don't think that's a factor. However, if the person viewing the page doesn't have Flash installed, that might cause the link to fail, although that doesn't sound plausible. But it might possibly explain why some people using the same browser don't have the same behavior as others. Can you get someone who is having this problem to send you the Source Page from their browser? If the hyperlink code looks correct, then it's a problem with their browser. I don't know how it could look any different, since the server just sends the same HTML code regardless of who requests it (unless your language selection code is doing something that it shouldn't do).
Post Reply