PHPBuilder - BBS or Forum revised pg2

RSS Twitter

BBS or Forum revised pg2

by: Daniel Cameron
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 -->

$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>\n\n";
$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>


Comment and Contribute

Your comment has been submitted and is pending approval.

Daniel Cameron



(Maximum characters: 1200). You have characters left.