Is this the right way to write inline php: ?
Your thoughts and comments on my code would be greatly appreciatated.
<?php
$td336699 = " <td bgcolor=\"#336699\" width=\"1\" align=\"left\" valign=\"top\"><img src=\"img/336699.gif\" width=\"1\" height=\"25\" alt=\"\" border=\"0\"></td>";
$tdcolspan4 = " <td bgcolor=\"#FFFFFF\" width=\"450\" align=\"left\" valign=\"top\" colspan=\"4\">";
?>
<html>
<head>
<title>Yorkee.</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<?php
if ($content == "index"){
?>
<link rel="stylesheet" href="style.css" type="text/css">
<script language="JavaScript" type="text/javascript">
<!--
// launch a new window =
function launch(url, name){
var w = 600;
var h = 350;
var x = screen.width/2 - (w/2);
var y = screen.height/2 - (h/2);
window.open(url, name, 'width=' + w + ',height=' + h + ',scrollbars=no,resizable=no,menubar=no,toolbar=no,status=no,location=no,directories=no,left=' + x + ',top=' + y + '');
}
// -->
</script>
<?php
}
?>
</head>
<body bgcolor="#336699" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<table width="100%" height="100%" cellspacing="0" cellpadding="0" border="0">
<tr>
<td bgcolor="#336699" width="100%" align="center" valign="middle">
<?php
if ($content == "index"){
?>
<table width="450" cellspacing="0" cellpadding="0" border="0">
<tr>
<?php echo"$tdcolspan4"; ?><img src="img/FFFFFF.gif" width="25" height="25" alt="" border="0"></td>
</tr>
<tr>
<td bgcolor="#FFFFFF" width="25"></td>
<?php echo"$td336699\n"; ?>
<td bgcolor="#FFFFFF" width="15" align="left" valign="top"><img src="img/FFFFFF.gif" width="15" height="1" alt="" border="0"></td>
<td bgcolor="#FFFFFF" width="409" align="left" valign="middle"><img src="img/id.gif" width="64" height="25" alt="" border="0"></td>
</tr>
<tr>
<?php echo"$tdcolspan4"; ?><img src="img/FFFFFF.gif" width="1" height="100" alt="" border="0"></td>
</tr>
<tr>
<td bgcolor="#FFFFFF" width="25"></td>
<?php echo"$td336699\n"; ?>
<td bgcolor="#FFFFFF" width="15"></td>
<td bgcolor="#FFFFFF" width="409" align="left" valign="middle" class="copy">Coming Soon.</td>
</tr>
<tr>
<td bgcolor="#FFFFFF" width="41" colspan="3"></td>
<td bgcolor="#FFFFFF" width="409" align="left" valign="top"><img src="img/FFFFFF.gif" width="409" height="25" alt="" border="0"></td>
</tr>
</table>
<?php
}
else if ($content == "display"){
?>
<object classid="clsid😃27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0" width="600" height="400">
<param name="movie" value="display.swf">
<param name="menu" value="false">
<param name="quality" value="high">
<param name="bgcolor" value="#336699">
<embed src="display.swf" menu="false" quality="high" bgcolor="#336699" width="600" height="400" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash"></embed>
</object>
<?php
}
else {
?>
<script language="JavaScript" type="text/javascript">
<!--
window.location.href = "default.php?content=index";
// -->
</script>
<?php
}
?>
</td>
</tr>
</table>
</body>
</html>