PHPBuilder - BBS or Forum revised pg2



RSS Twitter
Snippets Bbs Discussion

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 remmy82@hotmail.com -->

<?php
$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");

fclose($filed);

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


<html>

	<head>
<title>Forum Posted</title>	
</head>

	<body>
<center>
                              <table width="90%">
                                <TBODY>

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

                                face=Tahoma 

                                size=2><STRONG>~BBS~</STRONG></FONT></td></tr>

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

                                <BLOCKQUOTE>
                                
								<?php echo "You entered:";
echo "$cnt";
echo "$cnt2";
echo "$cnt3"; ?> 
<p><a href="view.php">View Entries Here!!!</a></p>
								
								
					&nbsp;</BLOCKQUOTE></font></td>
				</td>
			</tr>
		</table>
</center>	</body>

</html>

Comment and Contribute

Your comment has been submitted and is pending approval.

Author:
Daniel Cameron

Comment:



Comment:

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