Web Hosting Forum | Lunarpages
News: July 14, 2008 - New Contest! - Submit Your WordPress Theme Designs, Win BIG!
September 1, 2008 - Submit Your Web Site for the Sept 2008 Site of the Month!
 
*
Welcome, Guest. Please login or register.
Did you miss your activation email?
September 06, 2008, 06:29:15 PM


Login with username, password and session length


Pages: [1]   Go Down
  Print  
Author Topic: How to link pages correctly in php/tpl script PLEEASE !  (Read 486 times)
SJ
Spaceship Captain
*****
Offline Offline

Posts: 109


« on: November 03, 2007, 03:40:47 AM »

Hi, my script is run with php and tpl files

On my Hompepage (index.tpl ) the links (which came with the script) are coded as follows :

<a href='index.php?page=privacy' class='footerlink'>Privacy</a>


I want to add more links on the homepage again linking to pages within my script (not external website links)

1.  My question is do I link them as above...as I presume I do...but have noticed that I have been using the following  Doh ?

<a href="/index.php?page=membership">Bla Bla</a> (the difference being the ' and the ")

Is this type of link is it when you link to external sites ONLY ?


...Please someone explain which of these is correct and where I should be using them etc ? thanks
Logged
wektech
Jabba the Hutt
*****
Offline Offline

Posts: 686


WWW
« Reply #1 on: November 03, 2007, 06:58:40 AM »

I think you should be safe either way. generally when a link goes off site it will look like <a href="http://someothersite.org/index.php?page=membership">Bla Bla</a>
Logged

SJ
Spaceship Captain
*****
Offline Offline

Posts: 109


« Reply #2 on: November 03, 2007, 07:23:26 AM »

Thanks, Ok, When i view my page source with the internal links like this "http://www.mysite.com/index.php?page=membership" the links show up in RED does this mean error ?...coz....

When I change all the internal links to <a href='index.php?page=membership'> they do NOT show in RED...so does this mean that it is the correct way to write the code ?

All trial and error for me  hug me

Any one else chip in please  Confused
Logged
SJ
Spaceship Captain
*****
Offline Offline

Posts: 109


« Reply #3 on: November 03, 2007, 07:38:11 AM »

The reason I have noticed this is because yesterday I had a page rank of 2 which was yesterday put up to 4, but when I looked at the
Page Rank Bar, it has disappeared completely and returned to 0 Zero !

As far as I know Page Rank has a lot to do with links so wondered if this was why I had practically been dropped...any ideas....please  Crying or Very sad
Logged
wektech
Jabba the Hutt
*****
Offline Offline

Posts: 686


WWW
« Reply #4 on: November 03, 2007, 07:40:02 AM »

Are you viewing the source with firefox? If so this could indicate a problem where the double quotes have been replaced with a character mapping. The real test is to check and see if the link works or not.
Logged

SJ
Spaceship Captain
*****
Offline Offline

Posts: 109


« Reply #5 on: November 03, 2007, 08:02:48 AM »

Yes viewing with Firefox...

So would you say that using <a href='index.php?page=membership'> which does NOT come up in RED is the correct code then ?

Thanks
Logged
Pages: [1]   Go Up
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.3 | SMF © 2006-2007, Simple Machines LLC
Seo4Smf v0.2 © Webmaster's Talks


Valid XHTML 1.0! Valid CSS! Dilber MC Theme by HarzeM