Hey here is my code, How do I display the error messages inside the HTML? Do I wrap tables around the echo tags or what? I have no clue.
Here are the echos for the errors
[code=php]<?php
if (isset($error_message))
{
echo ‘<span style=”color:red”>’;
echo $error_message;
echo ‘</span>’;
}
?>
[code=html]<body>
<div id=”background” onload=”MM_preloadImages(‘login/images/background.jpg’)”></div>
<div id=”clientform”>
<form action=”<?php echo $_SERVER[‘PHP_SELF’]?>” method=”post”>
<table width=”120″ border=”0″ cellspacing=”8″ cellpadding=”0″>
<tr>
<td><label>
<input name=”username” type=”text” id=”username” size=”15″ />
</label></td>
</tr>
<tr>
<td><label>
<input name=”pass” type=”password” id=”pass” size=”15″ />
</label></td>
</tr>
<tr align=right>
<td><label>
<input type=”submit” name=”Submit” value=”Login” />
</label></td>
</tr>
</table>
</form>
</div>
<?php
if (isset($error_message)){
echo ‘<span style=”color:red”>’;
echo $error_message;
echo ‘</span>’;
}
?>
<div id=”navbg”></div>
<div id=”navigation”>
<script type=”text/javascript”>
AC_FL_RunContent( ‘codebase’,’http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0′,’width’,’217′,’height’,’301′,’src’,’flash/nav’,’quality’,’high’,’pluginspage’,’http://www.macromedia.com/go/getflashplayer’,’wmode’,’transparent’,’movie’,’flash/nav’ ); //end AC code
</script><noscript><object classid=”clsid:D27CDB6E-AE6D-11cf-96B8-444553540000″ codebase=”http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0″ width=”217″ height=”301″>
<param name=”movie” value=”flash/nav.swf” />
<param name=”quality” value=”high” />
<param name=”wmode” value=”transparent” />
<embed src=”flash/nav.swf” width=”217″ height=”301″ quality=”high” pluginspage=”http://www.macromedia.com/go/getflashplayer” type=”application/x-shockwave-flash” wmode=”transparent”></embed>
</object>
</noscript></div>
</body>