#native_company# #native_desc#

BBS or Forum revised pg2

By Daniel Cameron
on November 2, 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 second page, post.php

<!-- // script design by: Daniel Cameron, San Jose, CA, 95123, USA 
// email [email protected] -->

$address = getenv("REMOTE_ADDR");

$filename = "$DOCUMENT_ROOT/view.txt";
$nam = stripslashes($name);
$topi = stripslashes($topic);
$messag = stripslashes($message);
$cnt = "<hr><br>Name: $nam<br>n";
$cnt2 = "Topic: $topi<br>n";
$cnt3 = "Message: $messag<br>n";
$cnt4 = "IP: $address<br><br><br>nn";
$filed = @fopen($filename, "a+");
@fwrite($filed, "$cnt $cnt2 $cnt3 $cnt4");


$msg = "<p>Data Input complete</P>";


<title>Forum Posted</title>	

                              <table width="90%">

<tr><td bgcolor="#aeaeae"><FONT 



<tr><td bgcolor="#c0c0c0"><font size="2" face="tahoma" color="#000000">

								<?php echo "You entered:";
echo "$cnt";
echo "$cnt2";
echo "$cnt3"; ?> 
<p><a href="view.php">View Entries Here!!!</a></p>
</center>	</body>