Basic Shoutbox

Basic ShoutboxThis tutorial is very similar to the news portal and a basic shoutbox.

Alright, in this case, let's do the php code first. It should like something like below. You are more than welcome to change anything you want as long as you know what you are doing.

<?php
$tag
= ("<font size="2" face="Arial">

<a href="$website">$name: $message
</font>"
);

$file = fopen("tag.php", "r");
$read = fread($file, filesize("tag.php"));
fclose($file);
$invano = fopen("tag.php", "w"); //Leave alone look and learn, only edit if you know
php
$tag
=stripslashes($tag);
fwrite($invano, "$news $read");
fclose ($invano);
print
"<meta http-equiv="refresh" content="0;tag.php">"; //edit path to where the tag.php file falls
?>

Save this file as addtag.php

Now make a new file where it will store all the tags. Name it tags.php and CHMOD to 777.

Okay, we will do the form now and include the tag.php. Make 3 fields like below:

Name:
Website:
Message:

It should looks something like below:

<iframe name="tag" src="tags.php" marginwidth="1" marginheight="0" height="200" width="200" border="0" frameborder="0"></iframe>
<FORM action="addtag.php" method="POST" targer="tag">
Name:<br>
<INPUT TYPE="TEXT" name="name" size="20"><br>
Website:<br>
<INPUT TYPE="text" name="website" size="20" value="http://"><br>
Message:<br>
<TEXTAREA NAME="message" COLS=16 ROWS=2></TEXTAREA><br>
<br>
<INPUT TYPE="Submit" name="submit" value="Tag it!" size="20">
</FORM>

Call this file tag.php. Note that, we have added the iframe to show all the tags.

Now add the following code anywhere in your site to show the tag board <? include "tag.php";?>


Related Articles

  • Creating a Shoutbox
    This tutorial - Creating a Shoutbox will keep your interest as well as teach you a great bit of design with all the code you will need right on the page. The author makes it a snap with lots of photos and illustrations.
  • Advanced Shoutbox
    A tutorial based on how to create a Shoutbox on PHP with mySQL.
  • 5 Ways to Keep Visitors Coming Back
    A lot of successful websites depend on returning visitors to account for a major part of their traffic. Returning visitors are easier to convert into paying customers because the more often they return to a site, the more trust they have in that site.
  • Colour Theory
    The colour wheel below consists of 20 basic web safe colours, and is a helpful tool that shows the basic organization and relationships between colours. By choosing the colour opposite a particular colour you can match colours more effectively...
  • Basic Rules on Web Design
    In every design there are basic rules to consider. For a web design, here are a few of the rules which you can take or break for your projects:...
  • Color Theory - Some Basic Primer
    Achromatic schemes are made up of Black and Whites and the various range of neutral grays they produce. You can give achromatics a temperature by adding a small touch of another color...
  • 7 Easy Steps To Becoming A Web Hosting Reseller
    There are several key elements you must take care of before you can go into business as a web hosting reseller and expect to survive and prosper. In this article, we will touch on seven basic steps that are required for reselling accounts that are provided by a web hosting firm.
  • Basic Services of Web Hosting
    Hosting a website is a must for all those who wish to set up their own websites, either for business of leisure purposes. Web Hosting is a service provided to the prospective customers wherein space is allocated to them to present their websites.
  • How To Choose The Best Web Hosting
    If youre like me, you have only a basic idea of what web hosting actually is: if you want to start a website, you need web hosting!
  • The Basic First Steps of Search Engine Optimization
    If you are unfamiliar with the process by which search engines rank and order the listings that appear when someone searches for information, you need to understand a few basic concepts. The search engines all use a variety of different methods to analyze individual websites.

Contact Web Design Outsource and get started today

Need Website Designing, Development, Redesigning, Maintenance and SEO services or help growing your company's web presence? Request a free Quote Now.