Jump to content

Web Design Help


Recommended Posts

Alright. I've followed the tutorial and the first page, "page1.html" loads great in the layout. However, when I load any other pages, yeah, it doesn't work. It just loads page1.html again. I'm not sure if I entered the code wrong or what, but here's the HTML code for my index.php file.

<?php

  if ($link == page2){

	$page="pages/page2.html";

  }  

	elseif($link == page3){

	$page="pages/page3.html";

  }

	elseif($link == page4){

	$page="pages/page4.html";

  }

	elseif($link == page5){

	$page="pages/page5.html";

  }

	elseif($link == page6){

	$page="pages/page6.html";

  }

	elseif($link == page7){

	$page="pages/page7.html";

  }

	elseif($link == page8){

	$page="pages/page8.html";

  }

	elseif($link == page9){

	$page="pages/page9.html";

  }

	elseif($link == page10){

	$page="pages/page10.html";

  }

	elseif($link == page11){

	$page="pages/page11.html";

  }

	elseif($link == page12){

	$page="pages/page12.html";

  }

	elseif($link == page13){

	$page="pages/page13.html";

  }

	elseif($link == page14){

	$page="pages/page14.html";

  }

	elseif($link == page15){

	$page="pages/page15.html";

  }

	elseif($link == page16){

	$page="pages/page16.html";

  }

	elseif($link == page17){

	$page="pages/page17.html";

  }

  else{

	$page="pages/page1.html";

  }

?>

<html>


<head>

<meta http-equiv="Content-Language" content="en-us">

<meta name="GENERATOR" content="Microsoft FrontPage 5.0">

<meta name="ProgId" content="FrontPage.Editor.Document">

<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">

<title>Warped Ingenuity :: Because We Have Too Much Free Time</title>

<LINK REL=”STYLESHEET” TYPE=”text/css” HREF=”style.css”>

</head>


<body background="images/layout_11.png">


<div align="center">

  <center>

  <table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" id="AutoNumber1" width="763">

	<tr>

	  <td colspan="5" width="763">

	  <font size="2">

	  <img border="0" src="images/layout_03.png" width="763" height="161"></font></td>

	</tr>

	<tr>

	  <td width="38" height="387" valing=top background="images/layout_05.png"> </td>

	  <td width="128" height="387" valign=top background="images/layout_06.png">

	  <div align="center">

		<center>

		<table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" id="AutoNumber2">

		  <tr>

			<td width="129">

			<img border="0" src="images/layout_12.gif" width="129" height="14"></td>

		  </tr>

		  <tr>

			<td width="129">

			<p align="center">

			<a href="index.php?link=page1">

			<img border="0" src="images/layout_17.gif" width="129" height="15"></a><br>

			<a href="index.php?link=page2">

			<img border="0" src="images/layout_18.gif" width="129" height="15"></a><br>

			<img border="0" src="images/layout_19.gif" width="129" height="15"><br>

			<a href="index.php?link=page3">

			<img border="0" src="images/layout_20.gif" width="129" height="15"></a><br>

			<a href="index.php?link=page4">

			<img border="0" src="images/layout_21.gif" width="129" height="15"></a></td>

		  </tr>

		  <tr>

			<td width="129">

			<img border="0" src="images/layout_13.gif" width="129" height="15"></td>

		  </tr>

		  <tr>

			<td width="129">

			<p align="center">

			<img border="0" src="images/layout_22.gif" width="129" height="15"><br>

			<a href="index.php?link=page5">

			<img border="0" src="images/layout_23.gif" width="129" height="15"></a></td>

		  </tr>

		  <tr>

			<td width="129">

			<img border="0" src="images/layout_14.gif" width="129" height="15"></td>

		  </tr>

		  <tr>

			<td width="129">

			<a href="index.php?link=page6">

			<img border="0" src="images/layout_24.gif" width="129" height="15"></a><br>

			<a href="index.php?link=page7">

			<img border="0" src="images/layout_25.gif" width="129" height="15"></a><br>

			<a href="index.php?link=page8">

			<img border="0" src="images/layout_26.gif" width="129" height="15"></a><br>

			<a href="index.php?link=page9">

			<img border="0" src="images/layout_27.gif" width="129" height="15"></a></td>

		  </tr>

		  <tr>

			<td width="129">

			<img border="0" src="images/layout_15.gif" width="129" height="15"></td>

		  </tr>

		  <tr>

			<td width="129">

			<a href="index.php?link=page10">

			<img border="0" src="images/layout_28.gif" width="129" height="15"></a><br>

			<a href="index.php?link=page11">

			<img border="0" src="images/layout_29.gif" width="129" height="15"></a><br>

			<a href="index.php?link=page12">

			<img border="0" src="images/layout_30.gif" width="129" height="15"></a><br>

			<a href="index.php?link=page13">

			<img border="0" src="images/layout_27.gif" width="129" height="15"></a><br>

			<a href="index.php?link=page14">

			<img border="0" src="images/layout_31.gif" width="129" height="15"></a></td>

		  </tr>

		  <tr>

			<td width="129">

			<img border="0" src="images/layout_16.gif" width="129" height="15"></td>

		  </tr>

		  <tr>

			<td width="129">

			<a href="index.php?link=page15">

			<img border="0" src="images/layout_33.gif" width="129" height="15"></a><br>

			<a href="index.php?link=page16">

			<img border="0" src="images/layout_32.gif" width="129" height="15"></a></td>

		  </tr>

		  <tr>

			<td width="129">

			<img border="0" src="images/layout_34.gif" width="129" height="15"></td>

		  </tr>

		  <tr>

			<td width="129">

			<p align="center"><a href="index.php?link=page17">

			<img border="0" src="images/layout_35.gif" width="129" height="15"></a></td>

		  </tr>

		  </table>

		</center>

	  </div>

	  <td width="15" height="387" background="images/layout_07.png"> </td>

	  <td width="535" valign=top background="images/layout_08.png" style="padding: 10">

	  <?php include($page); ?></td>

	  <td valign=top width="40" height="397" background="images/layout_09.png">

	  <img border="0" src="images/layout_09.png" width="40" height="387"></td>

	</tr>

	<tr>

	  <td background="images/layout_05.png" colspan="5">

	  <font size="2">

	  <img border="0" src="images/layout_10.png" width="763" height="61"></font></td>

	</tr>

  </table>

  </center>

</div>


</body>


</html>

Link to comment
Share on other sites

Kliq. I tried fixing that and, well, still nothing. Regardless of which link I try, I end up being taken to the "page1.php" file, which works fine inside the template as it should. But it's the only one. Here's the code as it stands right now...

<?php

  if ( $link == 'page2' ){

	$page="pages/page2.html";

  }  

  elseif( $link == 'page3' ){

	$page="pages/page3.html";

  }

  elseif( $link == 'page4' ){

	$page="pages/page4.html";

  }

  elseif( $link == 'page5' ){

	$page="pages/page5.html";

  }

  elseif( $link == 'page6' ){

	$page="pages/page6.html";

  }

  elseif( $link == 'page7' ){

	$page="pages/page7.html";

  }

  elseif( $link == 'page8' ){

	$page="pages/page8.html";

  }

  elseif( $link == 'page9' ){

	$page="pages/page9.html";

  }

  elseif( $link == 'page10' ){

	$page="pages/page10.html";

  }

  elseif( $link == 'page11' ){

	$page="pages/page11.html";

  }

  elseif( $link == 'page12' ){

	$page="pages/page12.html";

  }

  elseif( $link == 'page13' ){

	$page="pages/page13.html";

  }

  elseif( $link == 'page14' ){

	$page="pages/page14.html";

  }

  elseif( $link == 'page15' ){

	$page="pages/page15.html";

  }

  elseif( $link == 'page16' ){

	$page="pages/page16.html";

  }

  elseif( $link == 'page17' ){

	$page="pages/page17.html";

  }

  else{

	$page="pages/page1.php";

  }

?>

<html>

<head>

<meta http-equiv="Content-Language" content="en-us">

<meta name="GENERATOR" content="Microsoft FrontPage 5.0">

<meta name="ProgId" content="FrontPage.Editor.Document">

<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">

<title>Warped Ingenuity :: Because We Have Too Much Free Time</title>

<LINK REL=”STYLESHEET” TYPE=”text/css” HREF=”myCSS.css”>

</head>


<body background="images/layout_11.png">


<div align="center">

  <center>

  <table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" id="AutoNumber1" width="763">

	<tr>

	  <td colspan="5" width="763">

	  <font size="2">

	  <img border="0" src="images/layout_03.png" width="763" height="161"></font></td>

	</tr>

	<tr>

	  <td width="41" height="387" valing=top background="images/layout_05.png"> </td>

	  <td width="128" height="387" valign=top background="images/layout_06.png">

	  <div align="center">

		<center>

		<table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" id="AutoNumber2">

		  <tr>

			<td width="129">

			<img border="0" src="images/layout_12.gif" width="129" height="14"></td>

		  </tr>

		  <tr>

			<td width="129">

			<p align="center">

			<a href="index.php?link=page1">

			<img border="0" src="images/layout_17.gif" width="129" height="15"></a><br>

			<a href="index.php?link=page2">

			<img border="0" src="images/layout_18.gif" width="129" height="15"></a><br>

			<a href="/community/"><img border="0" src="images/layout_19.gif" width="129" height="15"></a><br>

			<a href="index.php?link=page3">

			<img border="0" src="images/layout_20.gif" width="129" height="15"></a><br>

			<a href="index.php?link=page4">

			<img border="0" src="images/layout_21.gif" width="129" height="15"></a></td>

		  </tr>

		  <tr>

			<td width="129">

			<img border="0" src="images/layout_13.gif" width="129" height="15"></td>

		  </tr>

		  <tr>

			<td width="129">

			<p align="center">

			<a href="/comics/lsd"><img border="0" src="images/layout_22.gif" width="129" height="15"></a><br>

			<a href="index.php?link=page5">

			<img border="0" src="images/layout_23.gif" width="129" height="15"></a></td>

		  </tr>

		  <tr>

			<td width="129">

			<img border="0" src="images/layout_14.gif" width="129" height="15"></td>

		  </tr>

		  <tr>

			<td width="129">

			<a href="index.php?link=page6">

			<img border="0" src="images/layout_24.gif" width="129" height="15"></a><br>

			<a href="index.php?link=page7">

			<img border="0" src="images/layout_25.gif" width="129" height="15"></a><br>

			<a href="index.php?link=page8">

			<img border="0" src="images/layout_26.gif" width="129" height="15"></a><br>

			<a href="index.php?link=page9">

			<img border="0" src="images/layout_27.gif" width="129" height="15"></a></td>

		  </tr>

		  <tr>

			<td width="129">

			<img border="0" src="images/layout_15.gif" width="129" height="15"></td>

		  </tr>

		  <tr>

			<td width="129">

			<a href="index.php?link=page10">

			<img border="0" src="images/layout_28.gif" width="129" height="15"></a><br>

			<a href="index.php?link=page11">

			<img border="0" src="images/layout_29.gif" width="129" height="15"></a><br>

			<a href="index.php?link=page12">

			<img border="0" src="images/layout_30.gif" width="129" height="15"></a><br>

			<a href="index.php?link=page13">

			<img border="0" src="images/layout_27.gif" width="129" height="15"></a><br>

			<a href="index.php?link=page14">

			<img border="0" src="images/layout_31.gif" width="129" height="15"></a></td>

		  </tr>

		  <tr>

			<td width="129">

			<img border="0" src="images/layout_16.gif" width="129" height="15"></td>

		  </tr>

		  <tr>

			<td width="129">

			<a href="index.php?link=page15">

			<img border="0" src="images/layout_33.gif" width="129" height="15"></a><br>

			<a href="index.php?link=page16">

			<img border="0" src="images/layout_32.gif" width="129" height="15"></a></td>

		  </tr>

		  <tr>

			<td width="129">

			<img border="0" src="images/layout_34.gif" width="129" height="15"></td>

		  </tr>

		  <tr>

			<td width="129">

			<p align="center"><a href="index.php?link=page17">

			<img border="0" src="images/layout_35.gif" width="129" height="15"></a><br><br><br><br><a href="http://www.spreadfirefox.com/?q=affiliates&id=157897&t=82"><img border="0" alt="Get Firefox!" title="Get Firefox!" src="images/links/firefox.gif"/></a><br><br></td>

		  </tr>

		  </table>

		</center>

	  </div>

	  <td width="16" height="387" background="images/layout_07.png"> </td>

	  <td width="535" valign=top background="images/layout_08.png" style="padding: 10">

	  <?php include($page); ?></td>

	  <td valign=top width="40" height="397" background="images/layout_09.png">

	  <img border="0" src="images/layout_09.png" width="40" height="387"></td>

	</tr>

	<tr>

	  <td background="images/layout_05.png" colspan="5">

	  <font size="2">

	  <img border="0" src="images/layout_10.png" width="763" height="61"></font></td>

	</tr>

  </table>

<p align=center><img src="/cgi-sys/Count.cgi?df=wif.dat|display=Counter|ft=2|md=5|frgb=0;0;0|dd=E"></p>

  </center>

</div>


</body>


</html>

Link to comment
Share on other sites

Your quote tags are wrong. They should all be like the following.


if ( $link == "page2") {

	$page="pages/page2.html";

}

Should work. Also, it doesn't have to be page2. If you want the link to display the word legal, this will work just as well.

if ( $link == "legal") {

	$page="pages/page2.html";

}

Link to comment
Share on other sites

Is this correct? Because it's *still* not working and it should be. If one of you doesn't mind, can you fix the PHP code in its entirety? Because I'm apparently not doing it right. >_<

<?php

  if ( $link == "page2") {

	$page="pages/page2.html";

  }  

  elseif( $link == "page3") {

	$page="pages/page3.html";

  }

  elseif( $link == "page4") {

	$page="pages/page4.html";

  }

  elseif( $link == "page5") {

	$page="pages/page5.html";

  }

  elseif( $link == "page6") {

	$page="pages/page6.html";

  }

  elseif( $link == "page7") {

	$page="pages/page7.html";

  }

  elseif( $link == "page8") {

	$page="pages/page8.html";

  }

  elseif( $link == "page9") {

	$page="pages/page9.html";

  }

  elseif( $link == "page10") {

	$page="pages/page10.html";

  }

  elseif( $link == "page11") {

	$page="pages/page11.html";

  }

  elseif( $link == "page12") {

	$page="pages/page12.html";

  }

  elseif( $link == "page13") {

	$page="pages/page13.html";

  }

  elseif( $link == "page14") {

	$page="pages/page14.html";

  }

  elseif( $link == "page15") {

	$page="pages/page15.html";

  }

  elseif( $link == "page16") {

	$page="pages/page16.html";

  }

  elseif( $link == "page17") {

	$page="pages/page17.html";

  }

  else{

	$page="pages/page1.php";

  }

?>

<html>

<head>

<meta http-equiv="Content-Language" content="en-us">

<meta name="GENERATOR" content="Microsoft FrontPage 5.0">

<meta name="ProgId" content="FrontPage.Editor.Document">

<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">

<title>Warped Ingenuity :: Because We Have Too Much Free Time</title>

<LINK REL=”STYLESHEET” TYPE=”text/css” HREF=”myCSS.css”>

</head>


<body background="images/layout_11.png">


<div align="center">

  <center>

  <table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" id="AutoNumber1" width="763">

	<tr>

	  <td colspan="5" width="763">

	  <font size="2">

	  <img border="0" src="images/layout_03.png" width="763" height="161"></font></td>

	</tr>

	<tr>

	  <td width="41" height="387" valing=top background="images/layout_05.png"> </td>

	  <td width="128" height="387" valign=top background="images/layout_06.png">

	  <div align="center">

		<center>

		<table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" id="AutoNumber2">

		  <tr>

			<td width="129">

			<img border="0" src="images/layout_12.gif" width="129" height="14"></td>

		  </tr>

		  <tr>

			<td width="129">

			<p align="center">

			<a href="index.php?link=page1">

			<img border="0" src="images/layout_17.gif" width="129" height="15"></a><br>

			<a href="index.php?link=page2">

			<img border="0" src="images/layout_18.gif" width="129" height="15"></a><br>

			<a href="/community/"><img border="0" src="images/layout_19.gif" width="129" height="15"></a><br>

			<a href="index.php?link=page3">

			<img border="0" src="images/layout_20.gif" width="129" height="15"></a><br>

			<a href="index.php?link=page4">

			<img border="0" src="images/layout_21.gif" width="129" height="15"></a></td>

		  </tr>

		  <tr>

			<td width="129">

			<img border="0" src="images/layout_13.gif" width="129" height="15"></td>

		  </tr>

		  <tr>

			<td width="129">

			<p align="center">

			<a href="/comics/lsd"><img border="0" src="images/layout_22.gif" width="129" height="15"></a><br>

			<a href="index.php?link=page5">

			<img border="0" src="images/layout_23.gif" width="129" height="15"></a></td>

		  </tr>

		  <tr>

			<td width="129">

			<img border="0" src="images/layout_14.gif" width="129" height="15"></td>

		  </tr>

		  <tr>

			<td width="129">

			<a href="index.php?link=page6">

			<img border="0" src="images/layout_24.gif" width="129" height="15"></a><br>

			<a href="index.php?link=page7">

			<img border="0" src="images/layout_25.gif" width="129" height="15"></a><br>

			<a href="index.php?link=page8">

			<img border="0" src="images/layout_26.gif" width="129" height="15"></a><br>

			<a href="index.php?link=page9">

			<img border="0" src="images/layout_27.gif" width="129" height="15"></a></td>

		  </tr>

		  <tr>

			<td width="129">

			<img border="0" src="images/layout_15.gif" width="129" height="15"></td>

		  </tr>

		  <tr>

			<td width="129">

			<a href="index.php?link=page10">

			<img border="0" src="images/layout_28.gif" width="129" height="15"></a><br>

			<a href="index.php?link=page11">

			<img border="0" src="images/layout_29.gif" width="129" height="15"></a><br>

			<a href="index.php?link=page12">

			<img border="0" src="images/layout_30.gif" width="129" height="15"></a><br>

			<a href="index.php?link=page13">

			<img border="0" src="images/layout_27.gif" width="129" height="15"></a><br>

			<a href="index.php?link=page14">

			<img border="0" src="images/layout_31.gif" width="129" height="15"></a></td>

		  </tr>

		  <tr>

			<td width="129">

			<img border="0" src="images/layout_16.gif" width="129" height="15"></td>

		  </tr>

		  <tr>

			<td width="129">

			<a href="index.php?link=page15">

			<img border="0" src="images/layout_33.gif" width="129" height="15"></a><br>

			<a href="index.php?link=page16">

			<img border="0" src="images/layout_32.gif" width="129" height="15"></a></td>

		  </tr>

		  <tr>

			<td width="129">

			<img border="0" src="images/layout_34.gif" width="129" height="15"></td>

		  </tr>

		  <tr>

			<td width="129">

			<p align="center"><a href="index.php?link=page17">

			<img border="0" src="images/layout_35.gif" width="129" height="15"></a><br><br><br><br><a href="http://www.spreadfirefox.com/?q=affiliates&id=157897&t=82"><img border="0" alt="Get Firefox!" title="Get Firefox!" src="images/links/firefox.gif"/></a><br><br></td>

		  </tr>

		  </table>

		</center>

	  </div>

	  <td width="16" height="387" background="images/layout_07.png"> </td>

	  <td width="535" valign=top background="images/layout_08.png" style="padding: 10">

	  <?php include($page); ?></td>

	  <td valign=top width="40" height="397" background="images/layout_09.png">

	  <img border="0" src="images/layout_09.png" width="40" height="387"></td>

	</tr>

	<tr>

	  <td background="images/layout_05.png" colspan="5">

	  <font size="2">

	  <img border="0" src="images/layout_10.png" width="763" height="61"></font></td>

	</tr>

  </table>

<p align=center><img src="/cgi-sys/Count.cgi?df=wif.dat|display=Counter|ft=2|md=5|frgb=0;0;0|dd=E"></p>

  </center>

</div>


</body>


</html>

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • 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. To learn more, see our Privacy Policy