shoutbox-index.phps

<?php
require_once("shoutbox.php");
 
if($submit){
$shoutbox = new shoutbox;
$shoutbox->connect();
$shoutbox->insertshout($shoutname, $shout);
header("Location: $PHP_SELF");
}
?>
 
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<HTML>
 
<HEAD>
 <TITLE>My shoutbox </TITLE>
 
<style>
body    {
        background-color: #ffffff;
        font-family: Verdana, Arial;
        font-size: 10pt;
        color: #000000;
        }
 
a       {
        color: #669900;}
 
a:visited   {
            color: #993300;}
 
a:hover {
        color: #FFFFFF;}
 
td      {
        color: #000000;
        font-family: Verdana, Arial;
        font-size: 10px;
        border: 1 solid #33373F;
        }
 
input,textarea  {
                text-decoration: none;
                background-color: #c0c0c0;
                font-family: Verdana, Arial;
                font-size: 10pt;
                font-weight: normal;
                border: 1 solid #3C4D6B;
                }
 
</style>                 
</HEAD>
 
<BODY>
<?php
$shoutbox = new shoutbox;
$shoutbox->listlimit = "20";
$shoutbox->bgcolor1 = "#ffcc00";
$shoutbox->bgcolor2 = "#c0c0c0";
 
$shoutbox->connect();
$shoutbox->displayform();
$shoutbox->displayshoutbox();
 
?>
 
</BODY>
</HTML>