Full-service Internet Marketing & Web Development
Recent Posts

Sponsors
![]() |
wwwboard 1 0Code Wizard, 12-30-2006 |
very simple, smooth, example of an wwwboard.
It's not secure, It's not very functional, but it sure is easy to use on a small site.
I also included a nice style sheet for this example, you can modify it to your sites needs.
<?
if ($message)
{
/* uncomment the next two lines to strip out html from input */
/* $name = strip_tags($name); */
/* $message = strip_tags($message); */
/* :)
$message = ereg_replace( "
", "
<P>", $message);
$date = date( "l, F j Y, h:i a");
$message = "<B>$name </B> -- $date<P> $message <BR><HR>";
$fp = fopen (basename($PHP_SELF) . ".comment", "a");
fwrite ($fp, $message);
fclose ($fp);
}
@readfile(basename(($PHP_SELF . ".comment")));
?>
<FORM method="post">
<b>Your name:</b><BR><INPUT name="name" type="text" size="55"><BR>
<b>Your comment:</b><BR><TEXTAREA name="message" rows=10 cols=55 wrap=virtual>
</TEXTAREA><BR>
<INPUT name="submit" type="submit" value="whoa!">
</FORM>
<style>
<--
a:link { color: #000000; font: 7.5pt verdana; font-weight: none; text-decoration: underlined }
a:visited { color: #000000; font: 7.5pt verdana; font-weight: none; text-decoration: underlined }
a:active { color: #000080; font: 7.5pt verdana; font-weight: none; text-decoration: none }
a:hover { color: #000080; font: 7.5pt verdana; font-weight: none; text-decoration: none }
td { color: #000000; font: 7.5pt verdana; font-weight: none; text-decoration: none }
body { color: #000000; font: 7.5pt verdana; font-weight: none; text-decoration: none }
input { color:#000000; font: 7.5pt verdana; font-weight: none; text-decoration: none; background: #c0c0c0; border: 1 solid #000000; }
-->
</style>
|
|
Subscribe Now to receive new posts via Email as soon as they come out.
Comments
Post your comments

