I'm somewhat new, its been awhile since i did any coding and decided to get back inot it.
I incoutered 2 problems.
structure of my script:
header.php
content
footer.php
I'm using CSS to make the links little more interactive and this is where i'm not doing well.
problem 1. its working in IE but not in FireFox
problem 2. the links works on the main page(header/content page1/footer) but when I click the link create_new_ticket.php
from the main_content.phps the css is lost when it loads up the next screen (header/content page2/footer). the header and the footer are the same. only the middle content is different.
header.php
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Solve</title>
<link href="css/public.css" media="all" rel="stylesheet" type="text/css" />
<style type="text/css">
<!--
.style4 {color: #FFFFFF; font-size: xx-large;}
.style5 {font-size: 16px}
.style1 {color: #FFFFFF}
-->
</style>
</head>
<body>
<div class="main"></div>
<table width="750" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#254A6C">
<tr>
<td height="33"><div align="center" class="style4">Solve <br />
<span class="style5">Business tracking system</span> </div></td>
</tr>
</table>
main content.php(css, here works but problem still exist in firefox)
<?php
include("header.php");
?>
<style type="text/css">
<!--
.style1 {color: #FFFFFF}
-->
</style>
<table width="750" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#ECE9D8">
<tr bgcolor="#8A1B22">
<span class="class1">
<td height="28">
<div align="center">
<a href="template/[B]create_new_ticket.php[/B]">Create new Ticket</a> | <a href="browse_open_tickets.php">Browse open tickets</a> | <a href="view_my_ticket.php">View my ticket</a>
</div>
</td> </span>
</tr>
</table>
<table width="750" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#DCD4AD">
<tr>
<td height="225"><table width="745" height="221" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="505"> </td>
<td width="229"> </td>
</tr>
</table></td>
</tr>
</table>
<?php include("footer.php"); ?>
footer.php
<style type="text/css">
<!--
.style6 {
font-size: xx-large;
color: #FFFFFF;
}
-->
</style>
<table width="750" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td bgcolor="#254A6C"><div align="center"><span class="style6 style1">footer</span></div></td>
</tr>
</table>
</body>
</html>
create_new_ticket.php (here where i loss the the CSS).this is the page that appears from the main content page.
<?php
include("header.php");
?>
<table width="750" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#ECE9D8">
<tr bgcolor="#8A1B22">
<span class="class1">
<td height="28">
<div align="center">
<a href="template/create_new_ticket.php">Create new Ticket</a> | <a href="browse_open_tickets.php">Browse open tickets</a> | <a href="view_my_ticket.php">View my ticket</a>
</div>
</td> </span>
</tr>
</table>
<table width="750" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#DCD4AD">
<tr>
<td height="225"><table width="750" height="221" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td colspan="4"><table width="740" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="39">Date:</td>
<td width="137">October 09 2007 </td>
<td width="548"><div align="right">Ticket number:</div></td>
<td width="73">0000001</td>
</tr>
<tr>
<td colspan="4"><div align="center">Solve... Ticket tracking system</div></td>
</tr>
<tr>
<td height="40" colspan="4"><div align="center">
<hr />
</div></td>
</tr>
</table>
<table width="740" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="101">First name: </td>
<td width="296"><input name="html_firstname" type="text" size="40" maxlength="50" /> </td>
<td width="88">Address:</td>
<td width="250"><input name="html_address" type="text" size="40" maxlength="50" /></td>
</tr>
<tr>
<td>Last name:</td>
<td><input name="html_lastname" type="text" id="html_lastname" size="40" maxlength="50" /></td>
<td>City:</td>
<td><input name="html_city" type="text" id="html_city" size="40" maxlength="50" /></td>
</tr>
<tr>
<td>Phone number: </td>
<td><input name="html_phone" type="text" id="html_phone" size="20" maxlength="20" /></td>
<td>Province:</td>
<td><input name="html_province" type="text" id="html_province" size="40" maxlength="40" /></td>
</tr>
<tr>
<td><p>Cell number: </p> </td>
<td><input name="html_cellphone" type="text" id="html_cellphone" size="20" maxlength="20" /></td>
<td>Postal Code: </td>
<td><input name="html_postacode" type="text" id="html_postacode" size="10" maxlength="10" /></td>
</tr>
<tr>
<td>Email address: </td>
<td><input name="html_email" type="text" id="html_email" size="40" maxlength="50" /></td>
<td> </td>
<td> </td>
</tr>
<tr>
<td height="20">Website:</td>
<td><input name="html_url" type="text" id="html_url" size="40" maxlength="50" /></td>
<td> </td>
<td> </td>
</tr>
<tr>
<td colspan="4"><hr /></td>
</tr>
</table>
<table width="740" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="83">Client Type:</td>
<td width="338">
<select name="html_select_clienttype" id="html_select_clienttype">
<option>Business</option>
<option>Home</option>
<option>Contract</option>
</select>
</td>
<td width="108">Hardware:</td>
<td width="206">
<select name="html_select_hardware" id="html_select_hardware">
</select>
</td>
</tr>
<tr>
<td>Service:</td>
<td> <select name="html_select_Service" id="html_select_Service"> </select>
</td>
<td>Software:</td>
<td><select name="html_select_software" id="html_select_software">
</select></td>
</tr>
<tr>
<td>Source:</td>
<td><select name="html_select_source" id="html_select_source">
</select></td>
<td> </td>
<td> </td>
</tr>
<tr>
<td colspan="4"><hr /></td>
</tr>
</table>
<table width="740" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td>One line description of ticket:<br />
<input name="html_oneline_description" type="text" id="html_oneline_description" size="65" /></td>
</tr>
<tr>
<td> </td>
</tr>
<tr>
<td>Detail description of ticket:<br />
<textarea name="html_detail_desc" cols="65" rows="6" id="html_detail_desc"></textarea></td>
</tr>
<tr>
<td> <p> </p> </td>
</tr>
</table>
<table width="745" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td> </td>
</tr>
</table></td>
</tr>
</table></td>
</tr>
</table>
<?php include("footer.php"); ?>