#native_company# #native_desc#
#native_cta#

BBS or Forum revised pg3

By Daniel Cameron
on October 30, 2000

Version: PHP4

Type: Full Script

Category: BBS/Discussion

License: GNU General Public License

Description: This is a basic BBS or Forum I created using a Web page to submit your name, topic, and message, then another page that writes the data to a file and displays what you wrote, then allows you to procede to BBS or Forum page.
This is the last page, view.php

<!-- // script design by: Daniel Cameron, San Jose, CA, 95123, USA 
// email [email protected] -->
<?php
$filename = "$DOCUMENT_ROOT/view.txt";
$whattoread = @fopen($filename, "r");
$file_cnt = fread($whattoread, filesize($filename));

$msg = "$file_cnt";
fclose($whattoread);

?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
	<title>BBS or Forum title here</title>
</head>

<body>
<DIV align=center>
<TABLE style="HEIGHT: 113px; WIDTH: 420px">
  
  <TR>
    <TD bgcolor="#9999cc"></TD>
    <TD bgcolor="#9999cc"></TD>
    <TD bgcolor="#9999cc"></TD></TR>
  <TR>
    <TD bgcolor="#9999cc"></TD>
    <TD bgcolor="#9999cc" height=16>
      <P align=center>BBS or Forum Title here</P>  </TD>
    <TD bgcolor="#9999cc"></TD></TR>
  <TR>
    <TD bgcolor="#9999cc"></TD>
    <TD><?php echo "$msg" ?></TD>
    <TD bgcolor="#9999cc"></TD></TR>
  <TR>
    <TD bgcolor="#9999cc"></TD>
    <TD bgcolor="#9999cc"></TD>
    <TD bgcolor="#9999cc"></TD></TR></TABLE></DIV>



</body>
</html>