You are invited to Log in or Register a free Frihost Account!

Message boards

I copied a message board script from a site (dnt ask me which one, i forgot, it was long time ago) and made a few changes. Now could somebody help me to implement it on my web site. Here is the code:

<html xmlns="">
<head profile="">

<title>Message board</title>

<meta http-equiv="refresh" content="1800" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="robots" content="index, follow" />

<meta name="generator" content="Microsoft FrontPage 5.0" />

<script language="javascript">

var urlof =""
var titleof =""

function AddBookMark()
if (document.all)
window.external.AddFavorite(urlof, titleof)

function newWindow()
{"tell.php","","toolbar=no, location=no, directories=no, status=no, scrollbars=no, width=575, height=510");
return false;


<div id="environment">
<div id="content">

<div id="middlewrap">
<div id="blogposts">
<div id="commentsection">

<div id="commentformsection" style="width: 538; height: 304">

<form action="" method="post">
<fieldset id="commentform">
<div class="formentry">
<input type="text" name="author" id="author" class="commentinput" value="" size="22" tabindex="1" /><label for="author">Name </label>

<div class="formentry" style="width: 426; height: 30">
<input type="text" name="email" id="email" class="commentinput" value="" size="22" tabindex="2" /><label for="email">Email</label>
<div class="formentry">
<input type="text" name="url" id="url" class="commentinput" value="" size="22" tabindex="3" /><label for="url">Website</label>

<div class="formentry">
<textarea name="comment" id="commenttext" cols="60" rows="10" tabindex="4"></textarea>
<input name="submit" type="submit" id="commentsubmit" tabindex="5" value="Submit Comment" />
<input type="hidden" name="comment_post_ID" value="3150" />


</div> </div>

Test page:

Now the problem is I'm a novice and I've no idea what I'm supposed to be doing. So could anyone please tell me how to script the page. I mean when people add comments to the page, it is supposed to get published on that page itself. But i don't know how I'm supposed to get it to work. Please help and tell me what is this page and how do i create it. thank you!!
Last time I used geocities, long time ago, they didn't support php/mysql. Might have changed by now, but in order to get this to work you will need to use php in example to store the information either in a file or in a database.

To get it displayed on your page again you will need to make use of php again in order to either load it from the file or load it from the database.

A tutorial about form processing can be found here:
To get it displayed on your page again you will need to make use of php again in order to either load it from the file or load it from the database.

I need help on how to use php to load comments from the file and how to create the file!
Here you can read about how to write to a file and read from a file:

The tutorial explains the basics which you will need to know in order to do something like this.

You might also want to make use of this:

in order to seperate the different comments, you could think of storing comments like:
name|comment|date|etc name|comment|date|etc

different comments would then be seperated by a " " and the comment data would be seperated by a "|", makes using explode easier to create the required arrays. You could also use a newline instead of a space to seperate the different comments, might create an easier to read comments file if you would every look through it, but that's up to you.
Thanks!! Smile
Related topics
The FRIHOST Top Albums List
What do most of you do when you are online?
Yahoo shuts down private rooms
Graphic Design Portal (Tutorials, Resources and more...)
Interview: Derek Liu, Gaia Online Anime Community
Hi Everyone
a good Online photo albums...sharing with u
php counter
The truth about oil...
Homework Sucks
How can I make a linux partition just using Disk Managment.
IGB Gaming - Message Boards for gamers!
imdb message boards are stupid
Reply to topic    Frihost Forum Index -> Scripting -> Php and MySQL

© 2005-2011 Frihost, forums powered by phpBB.