Simple PHP web site
I have 5 files such as bellow. However, when I click on the navigation links in the menu.php file, they don't point to anything but to content1.php ( I do have content2.php and content3.php as well). Any sugestions would be greately appreciated.
1-header.php
Code: Select all
<img src="images/logo.gif" width="150" height="100" alt="Sample Industries, Inc." align="left" hspace="20"/>
<h1 style="font:bold 2em sans-serif;color:#cc9933;text-align:center;">
Sample Industries, Inc.
</h1> <br clear="all"/>Code: Select all
<p align="center" style="font:bold 1em sans-serif;color:#000099">
<a href="index.php?c=1">Home Page</a><br />
<a href="index.php?c=2">Page #2</a><br />
<a href="index.php?c=3">Page #3</a><br />
</p>Code: Select all
<p align="center" style="font:bold .7em sans-serif;color:#000000">
Copyright ©2001 Sample Industries, Inc.
<br />
Site created by <a href="http://www.jwweb.com">JWWeb Design</a>
</p>Code: Select all
<h2 style="font:1.5em serif;color:#cc0000;">
Welcome to Our Home Page!
</h2>
<p style="font:.9em sans-serif;color:#000000">
This site has been built dynamically using PHP, an open-source embedded programming language designed to make a webmaster's life easier!
</p>
<p style="font:.9em sans-serif;color:#000000">
Using PHP can greatly reduce the amount of time a webmaster has to spend building and especially updating or maintaining a site. With server-side includes, a webmaster only has to change a single document to change a feature across an entire web site!
</p>Code: Select all
<html>
<head>
<title>Sample Industries Incorporated</title>
</head>
<body>
< ?php
require("header.php");
?>
<table width="95%" cellspacing="15" cellpadding="5" border="0">
<tr>
<td valign="top" width="120">
< ?php
require("menu.inc")
?>
</td>
<td valign="top">
< ?php
if ($c != "") {
include("content".$c.".php");
} else {
include("content1.php");
}
?>
</td>
</tr>
</table>
< ?php
require("footer.php");
?>
</body>
</html>I have 5 files such as bellow. However, when I click on the navigation links in the menu.php file, they don't point to anything but to content1.php ( I do have content2.php and content3.php as well). Any sugestions would be greately appreciated.
1-header.php
Code: Select all
<img src="images/logo.gif" width="150" height="100" alt="Sample Industries, Inc." align="left" hspace="20"/>
<h1 style="font:bold 2em sans-serif;color:#cc9933;text-align:center;">
Sample Industries, Inc.
</h1> <br clear="all"/>Code: Select all
<p align="center" style="font:bold 1em sans-serif;color:#000099">
<a href="index.php?c=1">Home Page</a><br />
<a href="index.php?c=2">Page #2</a><br />
<a href="index.php?c=3">Page #3</a><br />
</p>Code: Select all
<p align="center" style="font:bold .7em sans-serif;color:#000000">
Copyright ©2001 Sample Industries, Inc.
<br />
Site created by <a href="http://www.jwweb.com">JWWeb Design</a>
</p>Code: Select all
<h2 style="font:1.5em serif;color:#cc0000;">
Welcome to Our Home Page!
</h2>
<p style="font:.9em sans-serif;color:#000000">
This site has been built dynamically using PHP, an open-source embedded programming language designed to make a webmaster's life easier!
</p>
<p style="font:.9em sans-serif;color:#000000">
Using PHP can greatly reduce the amount of time a webmaster has to spend building and especially updating or maintaining a site. With server-side includes, a webmaster only has to change a single document to change a feature across an entire web site!
</p>Code: Select all
<html>
<head>
<title>Sample Industries Incorporated</title>
</head>
<body>
< ?php
require("e;header.php"e;);
?>
<table width="e;95%"e; cellspacing="e;15"e; cellpadding="e;5"e; border="e;0"e;>
<tr>
<td valign="e;top"e; width="e;120"e;>
< ?php
require("e;menu.inc"e;)
?>
</td>
<td valign="e;top"e;>
< ?php
if ($c != "e;"e;) {
include("e;content"e;.$c."e;.php"e;);
} else {
include("e;content1.php"e;);
}
?>
</td>
</tr>
</table&w. However, when I click on the navigation links in the menu.php file, they don't point to anything but to content1.php ( I do have content2.php and content3.php as well). Any sugestions would be greately appreciated.
1-header.phpCode: Select all
<img src="images/logo.gif" width="150" height="e;100"e; alt="e;Sample Industries, Inc."e; align="e;left"e; hspace="e;20"e;/>
<h1 style="e;font:bold 2em sans-serif;color:#cc9933;text-align:center;"e;>
Sample Industries, Inc.
</h1> <br clear="e;all"e;/>Code: Select all
<p align="center" style="font:bold 1em sans-serif;color:#000099">
<a href="index.php?c=1">Home Page</a><br />
<a href="index.php?c=2">Page #2</a><br />
<a href="index.php?c=3">Page #3</a><br />
</p>Code: Select all
<p align="center" style="font:bold .7em sans-serif;color:#000000">
Copyright ©2001 Sample Industries, Inc.
<br />
Site created by <a href="http://www.jwweb.com">JWWeb Design</a>
</p>Code: Select all
<h2 style="font:1.5em serif;color:#cc0000;">
Welcome to Our Home Page!
</h2>
<p style="font:.9em sans-serif;color:#000000">
This site has been built dynamically using PHP, an open-source embedded programming language designed to make a webmaster's life easier!
</p>
<p style="font:.9em sans-serif;color:#000000">
Using PHP can greatly reduce the amount of time a webmaster has to spend building and especially updating or maintaining a site. With server-side includes, a webmaster only has to change a single document to change a feature across an entire web site!
</p>Code: Select all
<html>
<head>
<title>Sample Industries Incorporated</title>
</head>
<body>
< ?php
require("e;header.php"e;);
?>
<table width="e;95%"e; cellspacing="e;15"e; cellpadding="e;5"e; border="e;0"e;>
<tr>
<td valign="e;top"e; width="e;120"e;>
< ?php
require("e;menu.inc"e;)
?>
</td>
<td valign="e;top"e;>
< ?php
if ($c != "e;"e;) {
include("e;content"e;.$c."e;.php"e;);
} else {
include("e;content1.php"e;);
}
?>
the menu.php file, they don't point to anything but to content1.php ( I do have content2.php and content3.php as well). Any sugestions would be greately appreciated.
1-header.phpCode: Select all
<img src="e;images/logo.gif"e; width="e;150"e; height="e;100"e; alt="e;Sample Industries, Inc."e; align="e;left"e; hspace="e;20"e;/>
<h1 style="e;font:bold 2em sans-serif;color:#cc9933;text-align:center;"e;>
Sample Industries, Inc.
</h1> <br clear="e;all"e;/>Code: Select all
<p align="center" style="font:bold 1em sans-serif;color:#000099">
<a href="index.php?c=1">Home Page</a><br />
<a href="index.php?c=2">Page #2</a><br />
<a href="index.php?c=3">Page #3</a><br />
</p>Code: Select all
<p align="center" style="font:bold .7em sans-serif;color:#000000">
Copyright ©2001 Sample Industries, Inc.
<br />
Site created by <a href="http://www.jwweb.com">JWWeb Design</a>
</p>Code: Select all
<h2 style="font:1.5em serif;color:#cc0000;">
Welcome to Our Home Page!
</h2>
<p style="font:.9em sans-serif;color:#000000">
This site has been built dynamically using PHP, an open-source embedded programming language designed to make a webmaster's life easier!
</p>
<p style="font:.9em sans-serif;color:#000000">
Using PHP can greatly reduce the amount of time a webmaster has to spend building and especially updating or maintaining a site. With server-side includes, a webmaster only has to change a single document to change a feature across an entire web site!
</p>Code: Select all
<html>
<head>
<title>Sample Industries Incorporated</title>
</head>
<body>
< ?php
require("e;header.php"e;);
?>
<table width="e;95%"e; cellspacing="e;15"e; cellpadding="e;5"e; border="e;0"e;>
<tr>
<td valign="e;top"e; width="e;120"e;>
< ?php
require("e;menu.inc"e;)
?>
</td>
<td valign="e;top"e;>
< ?php
if ($c != "e;"e;) {
include("e;content"e;.$c."e;.php"e;);
} else {
include("e;content1.php"e;);
}
?>
</td>
&anavigation links in the menu.php file, they don't point to anything but to content1.php ( I do have content2.php and content3.php as well). Any sugestions would be greately appreciated.
1-header.phpCode: Select all
<img src="images/logo.gif" width="150" height="100" alt="Sample Industries, Inc." align="left" hspace="20"/>
<h1 style="font:bold 2em sans-serif;color:#cc9933;text-align:center;"e;>
Sample Industries, Inc.
</h1> <br clear="e;all"e;/>Code: Select all
<p align="center" style="font:bold 1em sans-serif;color:#000099">
<a href="index.php?c=1">Home Page</a><br />
<a href="index.php?c=2">Page #2</a><br />
<a href="index.php?c=3">Page #3</a><br />
</p>Code: Select all
<p align="center" style="font:bold .7em sans-serif;color:#000000">
Copyright ©2001 Sample Industries, Inc.
<br />
Site created by <a href="http://www.jwweb.com">JWWeb Design</a>
</p>Code: Select all
<h2 style="font:1.5em serif;color:#cc0000;">
Welcome to Our Home Page!
</h2>
<p style="font:.9em sans-serif;color:#000000">
This site has been built dynamically using PHP, an open-source embedded programming language designed to make a webmaster's life easier!
</p>
<p style="font:.9em sans-serif;color:#000000">
Using PHP can greatly reduce the amount of time a webmaster has to spend building and especially updating or maintaining a site. With server-side includes, a webmaster only has to change a single document to change a feature across an entire web site!
</p>Code: Select all
<html>
<head>
<title>Sample Industries Incorporated</title>
</head>
<body>
< ?php
require("e;header.php"e;);
?>
<table width="e;95%"e; cellspacing="e;15"e; cellpadding="e;5"e; border="e;0"e;>
<tr>
<td valign="e;top"e; width="e;120"e;>
< ?php
require("e;menu.inc"e;)
?>
</td>
<td valign="te a simple 3 page web site using PHP.
I have 5 files such as bellow. However, when I click on the navigation links in the menu.php file, they don't point to anything but to content1.php ( I do have content2.php and content3.php as well). Any sugestions would be greately appreciated.
1-header.phpCode: Select all
<img src="e;images/logo.gif"e; width="e;150"e; height="e;100"e; alt="e;Sample Industries, Inc."e; align="e;left"e; hspace="e;20"e;/>
<h1 style="e;font:bold 2em sans-serif;color:#cc9933;text-align:center;"e;>
Sample Industries, Inc.
</h1> <br clear="e;all"e;/>Code: Select all
<p align="center" style="font:bold 1em sans-serif;color:#000099">
<a href="index.php?c=1">Home Page</a><br />
<a href="index.php?c=2">Page #2</a><br />
<a href="index.php?c=3">Page #3</a><br />
</p>Code: Select all
<p align="center" style="font:bold .7em sans-serif;color:#000000">
Copyright ©2001 Sample Industries, Inc.
<br />
Site created by <a href="http://www.jwweb.com">JWWeb Design</a>
</p>Code: Select all
<h2 style="font:1.5em serif;color:#cc0000;">
Welcome to Our Home Page!
</h2>
<p style="font:.9em sans-serif;color:#000000">
This site has been built dynamically using PHP, an open-source embedded programming language designed to make a webmaster's life easier!
</p>
<p style="font:.9em sans-serif;color:#000000">
Using PHP can greatly reduce the amount of time a webmaster has to spend building and especially updating or maintaining a site. With server-side includes, a webmaster only has to change a single document to change a feature across an entire web site!
</p>Code: Select all
<html>
<head>
<title>Sample Industries Incorporated</title>
</head>
<body>
< ?php
require("e;header.php"e;);
?>
<table width="e;95%"e; cellspacing="e;15"e; cellpadding="e;5"e; border="e;0"e;>
<tr>
<td valign="e;top"e; width="e;120"e;>
< ?php
require("e;menu.inc"e;)
?>
</td>
<td valign="e;top"e;>
< ?php
if ($c != "e;"e;) {
include("e;content"e;.$c."e;.php"e;);
} else {
include("e;content1.php"e;);
}
?>
</td>
</tr>
</table>
< ?php
require("e;footer.php"e;);
?>
</body&te a simple 3 page web site using PHP.
I have 5 files such as bellow. However, when I click on the navigation links in the menu.php file, they don't point to anything but to content1.php ( I do have content2.php and content3.php as well). Any sugestions would be greately appreciated.
1-header.phpCode: Select all
<img src="images/logo.gif" width="150" height="100" alt="Sample Industries, Inc." align="left" hspace="20"/>
<h1 style="font:bold 2em sans-serif;color:#cc9933;text-align:center;">
Sample Industries, Inc.
</h1> <br clear="all"/>Code: Select all
<p align="center" style="font:bold 1em sans-serif;color:#000099">
<a href="index.php?c=1">Home Page</a><br />
<a href="index.php?c=2">Page #2</a><br />
<a href="index.php?c=3">Page #3</a><br />
</p>Code: Select all
<p align="center" style="font:bold .7em sans-serif;color:#000000">
Copyright ©2001 Sample Industries, Inc.
<br />
Site created by <a href="http://www.jwweb.com">JWWeb Design</a>
</p>Code: Select all
<h2 style="font:1.5em serif;color:#cc0000;">
Welcome to Our Home Page!
</h2>
<p style="font:.9em sans-serif;color:#000000">
This site has been built dynamically using PHP, an open-source embedded programming language designed to make a webmaster's life easier!
</p>
<p style="font:.9em sans-serif;color:#000000">
Using PHP can greatly reduce the amount of time a webmaster has to spend building and especially updating or maintaining a site. With server-side includes, a webmaster only has to change a single document to change a feature across an entire web site!
</p>Code: Select all
<html>
<head>
<title>Sample Industries Incorporated</title>
</head>
<body>
< ?php
require("header.php");
?>
<table width="95%" cellspacing="15" cellpadding="5" border="0">
<tr>
<td valign="top" width=&p;quote;font:bold 2em sans-serif;color:#cc9933;text-align:center;">
Sample Industries, Inc.
</h1> <br clear="all"/>Code: Select all
<p align="center" style="font:bold 1em sans-serif;color:#000099">
<a href="index.php?c=1">Home Page</a><br />
<a href="index.php?c=2">Page #2</a><br />
<a href="index.php?c=3">Page #3</a><br />
</p>Code: Select all
<p align="center" style="font:bold .7em sans-serif;color:#000000">
Copyright ©2001 Sample Industries, Inc.
<br />
Site created by <a href="http://www.jwweb.com">JWWeb Design</a>
</p>Code: Select all
<h2 style="font:1.5em serif;color:#cc0000;">
Welcome to Our Home Page!
</h2>
<p style="font:.9em sans-serif;color:#000000">
This site has been built dynamically using PHP, an open-source embedded programming language designed to make a webmaster's life easier!
</p>
<p style="font:.9em sans-serif;color:#000000">
Using PHP can greatly reduce the amount of time a webmaster has to spend building and especially updating or maintaining a site. With server-side includes, a webmaster only has to change a single document to change a feature across an entire web site!
</p>Code: Select all
<html>
<head>
<title>Sample Industries Incorporated</title>
</head>
<body>
< ?php
require("header.php");
?>
<table width="95%" cellspacing="15" cellpadding="5" border="0">
<tr>
<td valign="top" width="120">
< ?php
require(&qCode: Select all
<p align="center" style="font:bold 1em sans-serif;color:#000099">
<a href="index.php?c=1">Home Page</a><br />
<a href="index.php?c=2">Page #2</a><br />
<a href="index.php?c=3"e;>Page #3</a><br />
</p>Code: Select all
<p align="center" style="font:bold .7em sans-serif;color:#000000">
Copyright ©2001 Sample Industries, Inc.
<br />
Site created by <a href="http://www.jwweb.com">JWWeb Design</a>
</p>Code: Select all
<h2 style="font:1.5em serif;color:#cc0000;">
Welcome to Our Home Page!
</h2>
<p style="font:.9em sans-serif;color:#000000">
This site has been built dynamically using PHP, an open-source embedded programming language designed to make a webmaster's life easier!
</p>
<p style="font:.9em sans-serif;color:#000000">
Using PHP can greatly reduce the amount of time a webmaster has to spend building and especially updating or maintaining a site. With server-side includes, a webmaster only has to change a single document to change a feature across an entire web site!
</p>Code: Select all
<html>
<head>
<title>Sample Industries Incorporated</title>
</head>
<body>
< ?php
require("e;header.phpow. However, when I click on the navigation links in the menu.php file, they don't point to anything but to content1.php ( I do have content2.php and content3.php as well). Any sugestions would be greately appreciated.
1-header.phpCode: Select all
<img src="images/logo.gif" width="150" height="100" alt="Sample Industries, Inc." align="left" hspace="20"/>
<h1 style="font:bold 2em sans-serif;color:#cc9933;text-align:center;">
Sample Industries, Inc.
</h1> <br clear="all"e;/>Code: Select all
<p align="center" style="font:bold 1em sans-serif;color:#000099">
<a href="index.php?c=1">Home Page</a><br />
<a href="index.php?c=2">Page #2</a><br />
<a href="index.php?c=3">Page #3</a><br />
</p>Code: Select all
<p align="center" style="font:bold .7em sans-serif;color:#000000">
Copyright ©2001 Sample Industries, Inc.
<br />
Site created by <a href="http://www.jwweb.com">JWWeb Design</a>
</p>Code: Select all
<h2 style="font:1.5em serif;color:#cc0000;">
Welcome to Our Home Page!
</h2>
<p style="font:.9em sans-serif;color:#000000">
This site has been built dynamically using PHP, an open-source embedded programming language designed to make a webmaster's life easier!
</p>
<p style="font:.9em sans-serif;color:#000000">
Using PHP can greatly reduce the amount of time a webmaster has to spend building and especially updating or maintaining a site. With server-side includes, a webmaster only has to change a single document to change a feature across an entire web site!
</p>Code: Select all
<html>
<head>
<title>Sample Industries Incorporated</title>
</head>
<body>
< ?php
require("e;header.php"e;);
?>
<table width="e;95%"e; cellspacing="e;15"e; cellpadding="e;5"e; border="e;0"e;>
<tr>
<td valign="e;top"e; width="e;120"e;>
< ?php
require("e;menu.inc"e;)
?>
</td>
&aick on the navigation links in the menu.php file, they don't point to anything but to content1.php ( I do have content2.php and content3.php as well). Any sugestions would be greately appreciated.
1-header.phpCode: Select all
<img src="images/logo.gif" width="150" height="100" alt="Sample Industries, Inc."e; align="e;left"e; hspace="e;20"e;/>
<h1 style="e;font:bold 2em sans-serif;color:#cc9933;text-align:center;"e;>
Sample Industries, Inc.
</h1> <br clear="e;all"e;/>Code: Select all
<p align="center" style="font:bold 1em sans-serif;color:#000099">
<a href="index.php?c=1">Home Page</a><br />
<a href="index.php?c=2">Page #2</a><br />
<a href="index.php?c=3">Page #3</a><br />
</p>Code: Select all
<p align="center" style="font:bold .7em sans-serif;color:#000000">
Copyright ©2001 Sample Industries, Inc.
<br />
Site created by <a href="http://www.jwweb.com">JWWeb Design</a>
</p>Code: Select all
<h2 style="font:1.5em serif;color:#cc0000;">
Welcome to Our Home Page!
</h2>
<p style="font:.9em sans-serif;color:#000000">
This site has been built dynamically using PHP, an open-source embedded programming language designed to make a webmaster's life easier!
</p>
<p style="font:.9em sans-serif;color:#000000">
Using PHP can greatly reduce the amount of time a webmaster has to spend building and especially updating or maintaining a site. With server-side includes, a webmaster only has to change a single document to change a feature across an entire web site!
</p>Code: Select all
<html>
<head>
<title>Sample Industries Incorporated</title>
</head>
<body>
< ?php
require("e;header.php"e;);
?>
<table width="e;95%"e; cellspacing="e;15"e; cellpadding="e;5"e; border="e;0"e;>
<tr>
<td valign="e;top"e; width="e;120"e;>
< ?php
require("e;menu.inc"e;)
?>
</td>
<td valign="e;top"e;>
< ?php
if ($c != "e;"e;) {
include("e;content"e;.$c."e;.php"e;);
} el
I have 5 files such as bellow. However, when I click on the navigation links in the menu.php file, they don't point to anything but to content1.php ( I do have content2.php and content3.php as well). Any sugestions would be greately appreciated.
1-header.phpCode: Select all
<img src="images/logo.gif" width="150" height="100"e; alt="e;Sample Industries, Inc."e; align="e;left"e; hspace="e;20"e;/>
<h1 style="font:bold 2em sans-serif;color:#cc9933;text-align:center;">
Sample Industries, Inc.
</h1> <br clear="all"/>Code: Select all
<p align="center" style="font:bold 1em sans-serif;color:#000099">
<a href="index.php?c=1">Home Page</a><br />
<a href="index.php?c=2">Page #2</a><br />
<a href="index.php?c=3">Page #3</a><br />
</p>Code: Select all
<p align="center" style="font:bold .7em sans-serif;color:#000000">
Copyright ©2001 Sample Industries, Inc.
<br />
Site created by <a href="http://www.jwweb.com">JWWeb Design</a>
</p>Code: Select all
<h2 style="font:1.5em serif;color:#cc0000;">
Welcome to Our Home Page!
</h2>
<p style="font:.9em sans-serif;color:#000000">
This site has been built dynamically using PHP, an open-source embedded programming language designed to make a webmaster's life easier!
</p>
<p style="font:.9em sans-serif;color:#000000">
Using PHP can greatly reduce the amount of time a webmaster has to spend building and especially updating or maintaining a site. With server-side includes, a webmaster only has to change a single document to change a feature across an entire web site!
</p>Code: Select all
<html>
<head>
<title>Sample Industries Incorporated</title>
</head>
<body>
< ?php
require("e;header.php"e;);
?>
<table width="e;95%"e; cellspacing="e;15"e; cellpadding="e;5"e; border="e;0"e;>
<tr>
<td valign="e;top&quo ( I do have content2.php and content3.php as well). Any sugestions would be greately appreciated.
1-header.phpCode: Select all
<img src="images/logo.gif" width="150" height="e;100"e; alt="e;Sample Industries, Inc."e; align="e;left"e; hspace="e;20"e;/>
<h1 style="e;font:bold 2em sans-serif;color:#cc9933;text-align:center;"e;>
Sample Industries, Inc.
</h1> <br clear="e;all"e;/>Code: Select all
<p align="center" style="font:bold 1em sans-serif;color:#000099">
<a href="index.php?c=1">Home Page</a><br />
<a href="index.php?c=2">Page #2</a><br />
<a href="index.php?c=3">Page #3</a><br />
</p>Code: Select all
<p align="center" style="font:bold .7em sans-serif;color:#000000">
Copyright ©2001 Sample Industries, Inc.
<br />
Site created by <a href="http://www.jwweb.com">JWWeb Design</a>
</p>Code: Select all
<h2 style="font:1.5em serif;color:#cc0000;">
Welcome to Our Home Page!
</h2>
<p style="font:.9em sans-serif;color:#000000">
This site has been built dynamically using PHP, an open-source embedded programming language designed to make a webmaster's life easier!
</p>
<p style="font:.9em sans-serif;color:#000000">
Using PHP can greatly reduce the amount of time a webmaster has to spend building and especially updating or maintaining a site. With server-side includes, a webmaster only has to change a single document to change a feature across an entire web site!
</p>Code: Select all
<html>
<head>
<title>Sample Industries Incorporated</title>
</head>
<body>
< ?php
require("header.php");
?>
<table width="95%" cellspacing="15" cellpadding="5" border="0">
<tr>
<td valign="top" width="120">
< ?php
require("menu.inc")
?>
</td>
<td valign="top">
< ?php
if ($c != "") {
include("content".$c.".php");
} else {
include("content1.php");
}
?>
</td>
</tr>
</table>
< ?php
require("footer.php");
?>
"e;images/logo.gif" width="150" height="100" alt="Sample Industries, Inc." align="left" hspace="20"/>
<h1 style="font:bold 2em sans-serif;color:#cc9933;text-align:center;">
Sample Industries, Inc.
</h1> <br clear="all"/>Code: Select all
<p align="center" style="font:bold 1em sans-serif;color:#000099">
<a href="index.php?c=1">Home Page</a><br />
<a href="index.php?c=2">Page #2</a><br />
<a href="index.php?c=3">Page #3</a><br />
</p>Code: Select all
<p align="center" style="font:bold .7em sans-serif;color:#000000">
Copyright ©2001 Sample Industries, Inc.
<br />
Site created by <a href="http://www.jwweb.com">JWWeb Design</a>
</p>Code: Select all
<h2 style="font:1.5em serif;color:#cc0000;">
Welcome to Our Home Page!
</h2>
<p style="font:.9em sans-serif;color:#000000">
This site has been built dynamically using PHP, an open-source embedded programming language designed to make a webmaster's life easier!
</p>
<p style="font:.9em sans-serif;color:#000000">
Using PHP can greatly reduce the amount of time a webmaster has to spend building and especially updating or maintaining a site. With server-side includes, a webmaster only has to change a single document to change a feature across an entire web site!
</p>Code: Select all
<html>
<head>
<title>Sample Industries Incorporated</title>
</head>
<body>
< ?php
require("e;header.php"e;);
?>
<table width="e;95%"e; cellspacing="e;15"e; cellpadding="e;5"e; border="e;0"e;>
<tr>
<td valign="e;top"e; width= page web site using PHP.
I have 5 files such as bellow. However, when I click on the navigation links in the menu.php file, they don't point to anything but to content1.php ( I do have content2.php and content3.php as well). Any sugestions would be greately appreciated.
1-header.phpCode: Select all
<img src="images/logo.gif" width="150" height="100" alt="Sample Industries, Inc." align="left" hspace="20"/>
<h1 style="font:bold 2em sans-serif;color:#cc9933;text-align:center;">
Sample Industries, Inc.
</h1> <br clear="all"/>Code: Select all
<p align="center" style="font:bold 1em sans-serif;color:#000099">
<a href="index.php?c=1">Home Page</a><br />
<a href="index.php?c=2">Page #2</a><br />
<a href="index.php?c=3">Page #3</a><br />
</p>Code: Select all
<p align="center" style="font:bold .7em sans-serif;color:#000000">
Copyright ©2001 Sample Industries, Inc.
<br />
Site created by <a href="http://www.jwweb.com">JWWeb Design</a>
</p>Code: Select all
<h2 style="font:1.5em serif;color:#cc0000;">
Welcome to Our Home Page!
</h2>
<p style="font:.9em sans-serif;color:#000000">
This site has been built dynamically using PHP, an open-source embedded programming language designed to make a webmaster's life easier!
</p>
<p style="font:.9em sans-serif;color:#000000">
Using PHP can greatly reduce the amount of time a webmaster has to spend building and especially updating or maintaining a site. With server-side includes, a webmaster only has to change a single document to change a feature across an entire web site!
</p>Code: Select all
<html>
<head>
<title>Sample Industries Incorporated&aestions would be greately appreciated.
1-header.phpCode: Select all
<img src="images/logo.gif" width="e;150"e; height="e;100"e; alt="e;Sample Industries, Inc."e; align="e;left"e; hspace="e;20"e;/>
<h1 style="e;font:bold 2em sans-serif;color:#cc9933;text-align:center;"e;>
Sample Industries, Inc.
</h1> <br clear="e;all"e;/>Code: Select all
<p align="center" style="font:bold 1em sans-serif;color:#000099">
<a href="index.php?c=1">Home Page</a><br />
<a href="index.php?c=2">Page #2</a><br />
<a href="index.php?c=3">Page #3</a><br />
</p>Code: Select all
<p align="center" style="font:bold .7em sans-serif;color:#000000">
Copyright ©2001 Sample Industries, Inc.
<br />
Site created by <a href="http://www.jwweb.com">JWWeb Design</a>
</p>Code: Select all
<h2 style="font:1.5em serif;color:#cc0000;">
Welcome to Our Home Page!
</h2>
<p style="font:.9em sans-serif;color:#000000">
This site has been built dynamically using PHP, an open-source embedded programming language designed to make a webmaster's life easier!
</p>
<p style="font:.9em sans-serif;color:#000000">
Using PHP can greatly reduce the amount of time a webmaster has to spend building and especially updating or maintaining a site. With server-side includes, a webmaster only has to change a single document to change a feature across an entire web site!
</p>Code: Select all
<html>
<head>
<title>Sample Industries Incorporated</title>
</head>
<body>
< ?php
require("header.php");
?>
<table width="95%" cellspacing="15" cellpadding="5" border="0">
<tr>
<td valign="top" width="120">
< ?php
require("menu.inc")
?>
</td>
<td valign="top">
< ?php
if ($c != "") {
include("content".$c.".php");
} else {
include("content1.php");
}
?>
</td>
</tr>
</table>
< ?php
require("footer.php");
?>
</body>
</html&gp;quote; width="150" height="100" alt="Sample Industries, Inc." align="left" hspace="20"/>
<h1 style="font:bold 2em sans-serif;color:#cc9933;text-align:center;">
Sample Industries, Inc.
</h1> <br clear="all"/>Code: Select all
<p align="center" style="font:bold 1em sans-serif;color:#000099">
<a href="index.php?c=1">Home Page</a><br />
<a href="index.php?c=2">Page #2</a><br />
<a href="index.php?c=3">Page #3</a><br />
</p>Code: Select all
<p align="center" style="font:bold .7em sans-serif;color:#000000">
Copyright ©2001 Sample Industries, Inc.
<br />
Site created by <a href="http://www.jwweb.com">JWWeb Design</a>
</p>Code: Select all
<h2 style="font:1.5em serif;color:#cc0000;">
Welcome to Our Home Page!
</h2>
<p style="font:.9em sans-serif;color:#000000">
This site has been built dynamically using PHP, an open-source embedded programming language designed to make a webmaster's life easier!
</p>
<p style="font:.9em sans-serif;color:#000000">
Using PHP can greatly reduce the amount of time a webmaster has to spend building and especially updating or maintaining a site. With server-side includes, a webmaster only has to change a single document to change a feature across an entire web site!
</p>Code: Select all
<html>
<head>
<title>Sample Industries Incorporated</title>
</head>
<body>
< ?php
require("header.php");
?>
<table width="95%" cellspacing="15" cellpadding="5" border="0">
<tr>
<td valign="top" width="120">
< ?php
require("menu.inc")
?>
</td>
<td valign="top">
< ?php
if ($c != "") {
include("content".$c.".php");
} else {
include("content1.php");
}
?>
</td>
</tr>
</table>
< ?php
require("footer.php");
?>
</body>
</html>2-menu.php
Code: Select all
<p align="center" style="font:bold 1em sans-serif;color:#000099">
<a href="index.php?c=1">Home Page</a><br />
<a href="index.php?c=2">Page #2</a><br />
<a href="index.php?c=3">Page #3</a><br />
</p>Code: Select all
<p align="center" style="font:bold .7em sans-serif;color:#000000">
Copyright ©2001 Sample Industries, Inc.
<br />
Site created by <a href="http://www.jwweb.com">JWWeb Design</a>
</p>Code: Select all
<h2 style="font:1.5em serif;color:#cc0000;">
Welcome to Our Home Page!
</h2>
<p style="font:.9em sans-serif;color:#000000">
This site has been built dynamically using PHP, an open-source embedded programming language designed to make a webmaster's life easier!
</p>
<p style="font:.9em sans-serif;color:#000000">
Using PHP can greatly reduce the amount of time a webmaster has to spend building and especially updating or maintaining a site. With server-side includes, a webmaster only has to change a single document to change a feature across an entire web site!
</p>Code: Select all
<html>
<head>
<title>Sample Industries Incorporated</title>
</head>
&am content2.php and content3.php as well). Any sugestions would be greately appreciated.
1-header.phpCode: Select all
<img src="images/logo.gif" width="150" height="100" alt="Sample Industries, Inc."e; align="e;left"e; hspace="e;20"e;/>
<h1 style="e;font:bold 2em sans-serif;color:#cc9933;text-align:center;"e;>
Sample Industries, Inc.
</h1> <br clear="e;all"e;/>Code: Select all
<p align="center" style="font:bold 1em sans-serif;color:#000099">
<a href="index.php?c=1">Home Page</a><br />
<a href="index.php?c=2">Page #2</a><br />
<a href="index.php?c=3">Page #3</a><br />
</p>Code: Select all
<p align="center" style="font:bold .7em sans-serif;color:#000000">
Copyright ©2001 Sample Industries, Inc.
<br />
Site created by <a href="http://www.jwweb.com">JWWeb Design</a>
</p>Code: Select all
<h2 style="font:1.5em serif;color:#cc0000;">
Welcome to Our Home Page!
</h2>
<p style="font:.9em sans-serif;color:#000000">
This site has been built dynamically using PHP, an open-source embedded programming language designed to make a webmaster's life easier!
</p>
<p style="font:.9em sans-serif;color:#000000">
Using PHP can greatly reduce the amount of time a webmaster has to spend building and especially updating or maintaining a site. With server-side includes, a webmaster only has to change a single document to change a feature across an entire web site!
</p>Code: Select all
<html>
<head>
<title>Sample Industries Incorporated</title>
</head>
<body>
< ?php
require("e;header.php"e;);
?>
<table width="e;95%"e; cellspacing="e;15"e; cellpadding="e;5"e; border="e;0"e;>
<tr>
<td valign="e;top"e; width="e;120"e;>
< ?php
require("e;menu.inc"e;)
?>
</td>
<td valign="e;top"e;>
< ?php
if ($c != "e;"e;) {
include("e;content"e;.$c."e;.php"e;);
} else {
include("e;content1.php"e;);
}
?>
</td>
</tr>
</table&appreciated.
1-header.phpCode: Select all
<img src="images/logo.gif" width="150" height="100" alt="Sample Industries, Inc." align="left" hspace="20"/>
<h1 style="font:bold 2em sans-serif;color:#cc9933;text-align:center;">
Sample Industries, Inc.
</h1> <br clear="all"/>Code: Select all
<p align="center" style="font:bold 1em sans-serif;color:#000099">
<a href="index.php?c=1">Home Page</a><br />
<a href="index.php?c=2">Page #2</a><br />
<a href="index.php?c=3">Page #3</a><br />
</p>Code: Select all
<p align="center" style="font:bold .7em sans-serif;color:#000000">
Copyright ©2001 Sample Industries, Inc.
<br />
Site created by <a href="http://www.jwweb.com">JWWeb Design</a>
</p>Code: Select all
<h2 style="font:1.5em serif;color:#cc0000;">
Welcome to Our Home Page!
</h2>
<p style="font:.9em sans-serif;color:#000000">
This site has been built dynamically using PHP, an open-source embedded programming language designed to make a webmaster's life easier!
</p>
<p style="font:.9em sans-serif;color:#000000">
Using PHP can greatly reduce the amount of time a webmaster has to spend building and especially updating or maintaining a site. With server-side includes, a webmaster only has to change a single document to change a feature across an entire web site!
</p>Code: Select all
<html>
<head>
<title>Sample Industries Incorporated</title>
</head>
<body>
< ?php
require("header.php");
?>
<table width="95%" cellspacing="15" cellpadding="5" border="0">
<tr>
<td valign="top" width="120">
< ?php
require("menu.inc")
?>
</td>
<td valign="top">
< ?php
if ($c != "") {
include("content".$c.".php");
} else {
include("content1.php")amp;gt;
<h1 style="font:bold 2em sans-serif;color:#cc9933;text-align:center;">
Sample Industries, Inc.
</h1> <br clear="all"/>Code: Select all
<p align="center" style="font:bold 1em sans-serif;color:#000099">
<a href="index.php?c=1">Home Page</a><br />
<a href="index.php?c=2">Page #2</a><br />
<a href="index.php?c=3">Page #3</a><br />
</p>Code: Select all
<p align="center" style="font:bold .7em sans-serif;color:#000000">
Copyright ©2001 Sample Industries, Inc.
<br />
Site created by <a href="http://www.jwweb.com">JWWeb Design</a>
</p>Code: Select all
<h2 style="e;font:1.5em serif;color:#cc0000;"e;>
Welcome to Our Home Page!
</