Jump to content

Welcome Page Problem


biosup

Recommended Posts

Having a problem with my website I just can't resolve - guess it is quite simple but have been trying to sort it for 3 days without success!!

 

I have used PHP instead of HTML frames, which has been brilliant except for the Home / Welcome page. For some reason the fonts are different on this page when I enter the site www.field-herpetology.co.uk and one of my photos is not displayed but the url does appear correct. If you enter the (half finished) site you will see the font is different from all other pages despite pointing at the same CSS style sheet. If you then click on the "Welcome" hyperlink everything displays as it should do but this is the same page it is pointing to....what have I done wrong??

 

If someone could spare two minutes to check the site any information would be gratefully received...many thanks in advance.

 

Tone

Link to comment
https://forums.phpfreaks.com/topic/212695-welcome-page-problem/
Share on other sites

This is the index.php file.........if you need anything else just shout!! Cheers Tone

 

<html>

 

<head>

<title>Field Herpetology</title>

</head>

<link rel="stylesheet" type="text/css" href="mystyles.css">

<body>

<?php

 

$location=$_GET['location'];

if (empty($location)) {

$location='welcome';

}

 

changelocation($location);

 

function changelocation($location) {

include ('header.html');

echo '<table cols="2" border="0" cellpadding="10" cellspacing="0" align="center" width="100%">';

echo '<tr>';

echo '<td width="140" height="100%" scrolling="no" bgcolor="#d6e3bc" valign="top">';

include('navbar.html');

echo '</td>';

echo '<td scrolling="yes" bgcolor="#EEEEEE">';

switch ($location) {

case 'welcome':

include ('welcome.html');

break;

case 'book':

include ('book.html');

break;

case 'fieldtrips':

include ('field_trips.html');

break;

case 'best':

include ('best_practice.html');

break;

case 'hotspots':

include ('herping_hot_spots.html');

break;

case 'recenttrips':

include ('recent_trips.html');

break;

case 'conservation':

include ('conservation.html');

break;

case 'venomous':

include ('venomous.html');

break;

case 'profile':

include ('profile.html');

break;

case 'links':

include ('links.html');

break;

}

echo '</td></tr></table>';

include ('footer.html');

}

?>

</body>

</html> 

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.