jesterpunch
06-10-2007, 04:01 AM
Hello folks,
I taught myself HTML 9 years ago and have been using it extensively ever since, so I feel embarassed to ask for help, although I never feel shy to ask for help with PHP!
My problem is as follows, my tables are going all crazy when I view them on my webspace and I can't figure out why.
Take a look:
http://theunsentletter.com/wdap/Assignment_2/index.php
Clearly the intro to my site isn't meant to be 2cm wide, yet the table code, to me, says it shouldn't.
Please help me!
The first script is the front page, the following scripts are the embedded php files.
<table width="750px" align="left" border="0">
<tr>
<td>
<?php include('title.php');?>
</td>
</tr>
<tr valign="top">
<td width="250px">
<h3>Select your School Colours:</h3>
<form name="styles" action="<?php echo(htmlentities($_SERVER['PHP_SELF'])); ?>" method="post">
<select name="styles">
<option value="standard.css"<?php if($_SESSION['styles'] == "standard.css"){ echo(" selected=\"selected\" "); }?>>Standard</option>
<option value="chs.css"<?php if($_SESSION['styles'] == "chs.css"){ echo(" selected=\"selected\" "); }?>>Cronulla High</option>
<option value="khs.css"<?php if($_SESSION['styles'] == "khs.css"){ echo(" selected=\"selected\" "); }?>>Kirrawee High</option>
</select>
<input type="submit" value="Submit">
</form>
<br>
<?php include('linksColumn.php');?>
</td>
<td width="500px" align="left">
<h3>Welcome to Science with Mr Brown!</h3>
<p>
I am a science teacher from the South of Sydney. I have made this website as a resource for teachers and students
who are currently working with the NSW Board of Studies syllabus.
</p>
<p>
If you're a student please feel free to search these pages for explanations, photos, diagrams, animations and
exercises that will assist you in doing your best.
</p>
<p>
If you're a teacher please feel at liberty to use these pages and the many free classroom exercises contained within
with your students.
</p>
<h3>Science News</h3>
Select a subject:
<br>
<a href="chemistryLinks.php">Chemistry</a> | <a href="physicsLinks.php">Physics</a> | Biology | Physics.
</td>
</tr>
</table>
The links Column
<table width="250px" border="0" cellpadding="1">
<tr>
<td><h3>Select your subject</h3></td>
</tr>
<tr>
<td>Chemistry</td>
</tr>
<tr>
<td><a href="biologyIndex.php">Biology</a></td>
</tr>
<tr>
<td>Physics</td>
</tr>
<tr>
<td>Geology</td>
</tr>
</table>
The title
<table width="750px" border=0 cellpadding=2>
<tr>
<td width="40%">
<img src="images/titleImage.jpg">
</td>
<td>
<center>
<h3>Search the site</h3>
<a href="searchSyllabus.php">Search by syllabus point</a> | <a href="searchSubject">Search by subject and title</a>
</center>
</td>
</tr>
</table>
I taught myself HTML 9 years ago and have been using it extensively ever since, so I feel embarassed to ask for help, although I never feel shy to ask for help with PHP!
My problem is as follows, my tables are going all crazy when I view them on my webspace and I can't figure out why.
Take a look:
http://theunsentletter.com/wdap/Assignment_2/index.php
Clearly the intro to my site isn't meant to be 2cm wide, yet the table code, to me, says it shouldn't.
Please help me!
The first script is the front page, the following scripts are the embedded php files.
<table width="750px" align="left" border="0">
<tr>
<td>
<?php include('title.php');?>
</td>
</tr>
<tr valign="top">
<td width="250px">
<h3>Select your School Colours:</h3>
<form name="styles" action="<?php echo(htmlentities($_SERVER['PHP_SELF'])); ?>" method="post">
<select name="styles">
<option value="standard.css"<?php if($_SESSION['styles'] == "standard.css"){ echo(" selected=\"selected\" "); }?>>Standard</option>
<option value="chs.css"<?php if($_SESSION['styles'] == "chs.css"){ echo(" selected=\"selected\" "); }?>>Cronulla High</option>
<option value="khs.css"<?php if($_SESSION['styles'] == "khs.css"){ echo(" selected=\"selected\" "); }?>>Kirrawee High</option>
</select>
<input type="submit" value="Submit">
</form>
<br>
<?php include('linksColumn.php');?>
</td>
<td width="500px" align="left">
<h3>Welcome to Science with Mr Brown!</h3>
<p>
I am a science teacher from the South of Sydney. I have made this website as a resource for teachers and students
who are currently working with the NSW Board of Studies syllabus.
</p>
<p>
If you're a student please feel free to search these pages for explanations, photos, diagrams, animations and
exercises that will assist you in doing your best.
</p>
<p>
If you're a teacher please feel at liberty to use these pages and the many free classroom exercises contained within
with your students.
</p>
<h3>Science News</h3>
Select a subject:
<br>
<a href="chemistryLinks.php">Chemistry</a> | <a href="physicsLinks.php">Physics</a> | Biology | Physics.
</td>
</tr>
</table>
The links Column
<table width="250px" border="0" cellpadding="1">
<tr>
<td><h3>Select your subject</h3></td>
</tr>
<tr>
<td>Chemistry</td>
</tr>
<tr>
<td><a href="biologyIndex.php">Biology</a></td>
</tr>
<tr>
<td>Physics</td>
</tr>
<tr>
<td>Geology</td>
</tr>
</table>
The title
<table width="750px" border=0 cellpadding=2>
<tr>
<td width="40%">
<img src="images/titleImage.jpg">
</td>
<td>
<center>
<h3>Search the site</h3>
<a href="searchSyllabus.php">Search by syllabus point</a> | <a href="searchSubject">Search by subject and title</a>
</center>
</td>
</tr>
</table>