How To Make A Simple File Based Shoutbox Using Php And Html

free web hosting
Open Discussion > CONTRIBUTE > Tutorials

How To Make A Simple File Based Shoutbox Using Php And Html

shadowx
A simple tut to make a simple shoutbox.

Let me jump right in. First of all you need the standard equipment for PHP, an IDE like XAMPP and an editor like PHP EDITOR 2OO7.

Were going to make a simple guestbook using three files, webpage.php, shout.php and shout.txt.

Webpage.php can be changed to whatver you want, it will be the page on which the guestbok is shown, you could even use this code and add it to another php page n your site. Shout.php is the proccessing page and shout.txt is where the shouts are stored.

Firstly we need to make the visual design of the box. Mine is very simple, like the one here at T17 just a big box for the text and two more boxes for your name and message. I wont go into the HTML code for this form as im concentrating on the PHP so here is the HTML code for the form:


CODE
<?

echo”
<HTML>
<center><BR><BR><BR>
<form action=shout.php method=post>
<textarea name=shouts rows=7 cols=65>

</textarea>
<BR>
<input type=text name=name value=name> -- <input type=text name=shout value=Message>
<BR>
<input type=submit value=submit>
</form>
“;

?>



We will go back to this code later but for now just use ECHO or PRINT to show this text to the user in the first PHP file, the one you want the shoutbox to appear on. Now were going to look at the shout.php processing page.

The first thing to do is to get the variables from the form, as we used the POST method we will need to use this array when getting the values in php.

As you might know to get a value from the POST variable into another variable the code looks like this:


CODE
$shoutname = strip_tags($_POST['name']);
$shouttxt = strip_tags($_POST['shout']);



So now whatever the user put into the boxes is now contained in the two variables called SHOUTNAME and SHOUTTXT to use later on. Note i used STRIP_TAGS to make the data more safe. As were storing the data as a text file any code wont get run anyway but this is just a precaution, i had someone try to inject code into my shoutbox and it didn't work even without the strip_tags so its fairly safe anyway.

Now we have the data we need to play with it meaning we need to store it somewhere, we could use a database but why bother? I think that's only useful in you need to hide the contents of the shoutbox or if you plan on getting thousands of shouts because the file would get very large with thousands of messages in it. I didnt plan n getting this many shouts so a file based one was fine for me and that is the route this tutorial will follow!

To write to a file we need three functions, FOPEN, FWRITE and FCLOSE, fairly easy to understand, they open, write to, and close files respectively. But before we write everything to a file we need to reverse the text, this is so that the latest shouts end up at the top of the shoutbox, otherwise it would be very annoying to scroll down to see the last shout. And before we reverse the string we first need to make it. We want the messages to look like this:

QUOTE
--------------------------------
Name: my name
Message: my message
--------------------------------


to arrange this using PHP we can do something like this:

CODE
$shoutn = "$shoutname : \n $shouttxt \n --------------------------------------------------------------- \n";


So now we have arranged the text we need to reverse it using STRREV:

CODE
$shout = strrev($shoutn);


Now you might have realised by now that all the text is also back to front and unreadable, but thats not a problem as we will be reversing it again shortly which is when it will become readable again.

Now we can get back to the file functions of opening, writing and closing. First we use FOPEN to open the file, FOPEN returns what is called a “handle” which is sort of a reference to the file and to use this handle we need to assign it to a variable:

CODE
$handle = fopen(“shout.txt, "ab");


This code opens the file”shout.txt” in APPEND mode which means we can write to the file and it will be written at the end of the file.

Now we need to write to the file using FWRITE, this is where we use the $handle variable to reference the file we want to write to, in this case “shout.txt”:

CODE
fwrite( $handle, $shout );


See how the handle comes first to let PHP know where we want to write and then the variable $shout, which we said earlier is the reversed version of the user's input, which is what must be written. So now the data is saved in the file and we have to close the file or we wont be able to open it again the next time they leave a message. We use FCLOSE for this, and again we use the $handle variable to let it know what to close:


CODE
fclose($handle);



Now that is pretty much the end of the PHP file except the user can only see a blank screen by now so we need to redirect them, After friiks replied with some useful code i have edited this line and came up with this:


CODE
header("Location: ".$_SERVER['HTTP_REFERER']);

?>



The header function in php can be used so long as it is the first line of outputted text, this means that if there is an ECHO or PRINT command above it anywhere it will not work but in this script we dont have any ECHOs or PRINTs so we can use a header as friiks said. The "location: ".$_SERVER['HTTP_referer'] simply means "go back to the last page" and so we are taken back to whichever page we entered out shout.

Now for the final additions to the first page we wrote because otherwise we will never see the shouts made already.

Again we will be using FOPEN and FCLOSE but this time we will also be using FREAD to read the file and get its contents. So open the first file which i called webpage.php it should already have the starting tag for php “<?” On the line under this tag, above the ECHO and html parts we need to use FOPEN, FREAD and FCLOSE. First of course FOPEN in the same way as before:


CODE
$handle = fopen(“shout.txt, "rb");



Now we need to use FREAD, its another simple tag that uses the $handle variable again but it also needs another variable which is the size of the file, this is so it knows how much data it needs to read, of course WE dont know the size but PHP does and by using the function FILESIZE we can find out the size of our file and give that value to FREAD:


CODE
$contents = fread($handle, filesize(“shout.txt));



Not how we used another variable, $contents, this variable now contains all the data from our shout.txt file which is of course, all the shouts made by our users. Now we need to close the file, easy enough:


CODE
fclose($handle);



if you remember back a bit we reversed the contents of that file so now in the $contents variable we have a load of back to front text that is useless, unless of course we reverse it again, which is what we are going to do:


CODE
$text = strrev($contents);



so now the text should be the right way round and with the last shout at the top. Hopefully!

So now we just need to get this text into the textbox we made on the first page. As its a TEXTAREA this is really easy!!! WE just need to put $text inside the textarea, so edit the textarea code so it looks like this:

CODE
<textarea name=shouts rows=7 cols=65>
$text
</textarea>



And bingo!! We are done! An important note is that PHP does not like empty files so the file “shout.txt” will always need something in it, a normal SPACE “ “ is enough, or even just a newline. Also you might need to refresh the first page to see your shout in the shoutbox, i suspect this can be solved with JavaScript but im not very good with JS so if you are then reply and let us all know how to solve that problem!

Otherwise, enjoy this tut. Ive attached my versions of what i wrote just so you can check if you went wrong! You might have trouble if you just copy and paste my code as i wrote it in open office and i had a problem with the quote marks myself so if it doesnt work try copying by hand and if it still doesn't work then drop me a line smile.gif


NOTE my version of "webpage.php" is "index.php" in the attachments and i didn't attach the shout.txt file as its simply a text file with one space in it.


EDIT** minor edit to solve a problem in IE, added an extra "\n" to the string which is saved to the file. Also edited thanks to Friiks as below smile.gif

 

 

 


Reply

friiks
Hm..
Wouldn't it be more effective to use a header() instead of
CODE
echo "<HTML><BODY OnMouseOver=\"java script:history.go(-1)\"></HTML> ";

Well that's what I would certainly do...

Reply

shadowx
It definitely would! the reason i didn't do it is because in php the header function must be the first line of outputted text so i tend never to use header unless i have to but after testing it myself it works perfectly so i shall edit the above post.

kudos to you!

Reply

friiks
Well..header has to be set before any output but that file doesn't output anything..so you do that tongue.gif

Reply

shadowx
The post and files have been edited tongue.gif Im currently adapting this script to work with a database that will automatically cut out a certain number of post to keep only the most recent so i will also add the header code to that one, and if i complete it i might post a tutorial for that too. Thanks for letting me know about that!

I just realised im spending a saturday evening writing website code...whats wrong with me?! ohmy.gif

Reply

friiks
Don't know..Im spening my saturday evening here and waiting when my girlfriend will get out of the shower...she's sloooow... dry.gif

Anyways, this is off topic so I'm try to write a tutorial or two tomorrow evening. Converting this to database driven wouldn't be hard at all.. well at least for me as I never use flatfile databases. They are unsafe =/

Edit:
Ok wait, I reread your code aand.. You're putting the shouts in a textbox?
I mean everyone can edit them as they want..
I'll make a shoutbox tutorial how would I do it tomorrow tongue.gif

Reply

shadowx
The textarea thing was something else that was, ill admit, very low on my list of things to do, ive concentrated a lot on php and less on HTML for a while so i wouldn't think of any other object except a frame which could have a scrollbar. And i figured they could change the textarea content and that way change the shouts but those changes wouldn't be saved as the only data taken to the form is that from the two input boxes for name and their shout, the textarea is only a container.

Im working on the conversion now but its 11pm so i gave up now! I have a very odd thing going on, i have a database which stores the shouts and im using numbers for the moment as the name and shout so i can track them easily in the database and its fine for numbers between 1 and 3, eg:

CODE
name          shout
1                1
2                2
3                3


but at number four i get this in the database:

CODE
name          shout
1                1
2                2
4                4
3                3


So that will need a closer look dry.gif either way its about time i got some sleep for an early start tomorrow! Im interesting in seeing your version of the shoutbox though, i think the best way to develop yourself as a coder is to see how other people would solve the same problem smile.gif Without direct copying though! that's just cheating! And by the way, welcome to trap17!

 

 

 


Reply

friiks
Thanks, and yeah, I completely agree with you.

And sorry bout the textarea, I just didn't notice you don't submit it xP
*blames its 00:35*
Well,I'm off to bed anyways...have to get it warm for her xD



Reply

jlhaslip
For a sample of a shoutbox using a mysql database, check this link.

Reply



Got an Opinion! Express your Views! (no registration):-
Add your Reply/ Opinion/ Views/ Comments/ Suggestion/ Questions/ Queries etc.
Posts with decent grammar & English will be accepted and please refrain from profanities.
For asking a Question, We recommend you to sign-up (for free) so that you can track the topic easily.

Nature of your Post*: Opinion/ Reply/ Comments
Question/Query
Feedback to us.
       
Name   Email
Title/Question*

(Maximum characters: 10,000)
You have characters left.

Recent Queries:-
  1. what is file t17.php - 147.88 hr back. (1)
  2. how to attach php in an index.html file - 287.46 hr back. (1)
  3. how to make a simple shoutbox - 327.15 hr back. (1)
  4. how to make simple shoutbox - 652.61 hr back. (1)
  5. how to make shoutbox in a webpage - 667.16 hr back. (1)
  6. is it possible to run a .exe file using a notepad script or a command on note pad - 937.27 hr back. (1)
Similar Topics

Keywords : file based shoutbox php html

  1. How To Extract The Audio From Youtube Videos - get an mp3 file from youtube (5)
    How To Extract The Audio From YouTube Videos This lovely simple tutorial will tell you how
    to extract the audio from YouTube videos. Obviously , I am not in any way advocating that you take
    copyrighted music that is available illegally in video-form on YouTube and extract the audio from
    those videos rather than going down to HMV and buying the music. In this tutorial I will be using
    the following video: http://uk.youtube.com/watch?v=gUhhRc5eWNw Firstly, you download the video,
    which is simple. Just go to www.downloadyoutubevideos.com and paste the video...
  2. How To: Change Your Website's Index File - a simple trick using .htaccess (24)
    How To: Change Your Website's Index File a simple trick using the .htaccess file A simple
    tutorial which only involves editing one little file. Useful for those of us who have mime-typed
    extensions or who are creating lots of test design files and want an easy way to make the design
    they like best their default file. Create a file called .htaccess in the /public_html/ folder if
    you don't have it. I think one should be there already when you get your site so if it isn't
    you should create it anyway! In the file write the following: CODE Di...
  3. Reclaim Control Over Your Windows-based Pc - Part 1 (2)
  4. Add Flashing Inbox To Invisionfree Forum - Html code for invsiionfree!! (2)
    Do you find it annoying when you are on your invisionfree forum, and you get a new message, and it
    ends up taking you 5 minutes to notice? This code makes the inbox link flash bold red saying how
    many messages you have. In version 1 the word inbox stays the same, and doesnt change at all (for
    Example this is flashing: Inbox (2) In version 2 (the second code) the word inbox changes to
    messages (constantly, so that if you have none, it says messages (0) instead of inbox (0). It still
    flashes Red Put the following In the Header and Body Section (Admin Cp>>>Skinning ...
  5. How To Create Pdf Files Using Free Tool - Introduction to use a free tool to create PDF file (0)
    Now, that you don't need to have expensive software like Acrobat to create PDF. All you need is
    Microsoft Office and a software name doPDF. You can download the freeware from
    http://www.dopdf.com/download.php After downloading dopdf.exe, follow the instruction below 1.
    Double click to install it, as display at image 1.jpg, choose a language and click OK 2. You will
    see 2.jpg click next 3. Click I accept the agreement see 3.jpg, click next 4. Now you will see
    4.jpg, select the folder to install it and click next 5. When seeing 5.jpg, This is the folder group
    in Star...
  6. Create Dynamic Html/php Pages Using Simple Vb.net Code - Taking your application data, and creating a webpage for others to vie (1)
    This example will show you how use a string in VB to create PHP code. In order to do this, you need
    a string to store your PHP page and a function that I will list at the bottom of the page for you to
    put in a module. This code is written in VB.NET Public Sub CreatePage(ByVal HTMLTitle As
    String, ByVal HTMLText As String, ByVal HTMLFileName As String) Dim strFile As String '
    ---------------------- ' -- Prepare String -- ' ---------------------- strFile = "" '
    -------------------- ' -- Write Starter -- ' -------------------- strFile = " " ...
  7. How To Install Opengeu In Ubuntu - OpenGEU is a distro based on Enlightenment and derived from Ubuntu (0)
    First of all please note well that E17 is in beta fase, and can make your computer segfault (which
    by contrary - WILL NOT ERASE YOUR DATA - your computer will be restored to the statein which it was
    before it segfaulted), and if you don't want this to happen then don't install this!
    Well, in this tutorial I will tell you how to install OpenGEU when you already have Ubuntu (or
    Kubuntu and Xubuntu ) installed already on your machine. First of all I need to introduce you to
    OpenGEU, it's a relativelly new Linux distro which uses Enlightenment ins...
  8. Make A Flat Based Shoutbox, With Auto Refresh. - (6)
    With this tutorial, you will learn how to create a simple shoutbox, but only uses a .txt file. Also
    with auto refresh, and I am going to do a backgound. We will be making 5 files. 1. index.php The
    main page 2. msg.php Reading msg.txt 3. msg.txt Note: You must give it 777 4. shout.php Where
    it add to msg.txt 5. bg.gif Background. Index.php would be like this: Shoutbox
    Name: Message: Let's go over what the code do. -> are just the title.
    gets msg.php which gets msg.txt. You will know why I do that later. -> is wh...
  9. Background Image Swap Script - Change a Background Image based on clock time (15)
    Background Image Changer Script To swap the background image from your CSS file according to the
    Server Clock Time. 1.) In your CSS file, add the following rule: CODE body {
        background: url(time.png); } 2.) Create a "folder" named time.png. 3.) Into the
    folder, place three images named morning.png, day.png, night.png. 4.) Also, in the same folder,
    create an index.php file and copy/paste the following script. CODE <?php $hour =
    date('H'); if ($hour < 12 ) {     $image =
    "morning.png"; } ...
  10. Transfer File Of Any Size Using Winsock Control - Winsock Help (5)
    This tutorial shows how to transfer file of any size using winsock control. - Open VB; - Select
    standard exe; - Press Ctrl + t to show the add component window; - Select winsock control and
    microsoft common dialog; - Add one winsock control in the project; - Name it winsock1; - If you want
    to add chat then add another winsock and name it winsock2; - Insert another winsock object if you
    want to add chat also; - Add a microsoft common dialog box; - Name it cd; - We will use this
    winsock1 object to transfer the file and winsock2 for chat; ------------- The basic idea : ...
  11. Debug Exe Files - How to debug an exe file. (4)
    Think that we have written a program, and some codes are wrong. We can go back to compiler and
    change the code, and compile again. But I will show you how to correct our mistakes without using
    the compiler. Let's start: I have written a program in Delphi. Let's see my mistake. I
    have created a form like this. After this I wrote the codes in the Compare Button click as
    below. CODE 1.   procedure TForm1.ComparebuttonClick(Sender: TObject); 2.   var
    3.     a,b:integer; 4.   begin 5.     a := StrToInt(EditA.Text); 6.     b :...
  12. How To: Make A Simple Php Site - Making one file show up on all pages using php (21)
    I have looked all over the site and could not find anything that was like this simple, or just like
    this at all.. For some people i know that you are using a basic HTML site...and having a big menu
    if you want to add somthing you have to go into every one of the pages and add or remove or edit
    what you want to do, but with somthing verry simple all you would have to do is edit one file, and
    all of the pages that have the PHP script on them would suddenly change to what that one file is.
    So to start off if you are planning on using this little tirck, the page that you a...
  13. Tutorial: Installing D-shoutbox For Ipb V1.2 - Making your installation even easier (12)
    Over the course of the summer I have tried hard to install a shoutbox into a new forum I was
    developing. I went to the Invisionalize forums and found several mods for shoutboxes, but none of
    them seemed to work. I first tried to install the D-Shoutbox, but upon this first try, I was
    unsuccessful. Eventually, after much frustration, and trying other mods, which didn't seem to
    stack up to Dean's features, I was determined to make it work. For some, editing your files (to
    the newbie that is) can be difficult, with everything looking like a foreign language (basi...
  14. Make A Moderately-secure Password System Using Javascript - using file redirection to hide the password. (4)
    JavaScript is very handy at making forms, allowing for much more customization and easier ways to
    send data. So making Login forms using JavaScript may seem to many to be a very feasable idea.
    However, JavaScript is very bad at protecting Passwords, as since the passwords are not encypted and
    the whole JavaScript code is in the page, a person could just view the Page Source and find out
    everything. Even if you use an external JavaScript, it would still be poor as the file name for the
    external JavaScript would still be revealed. But I have an answer! There is a rela...
  15. How To: Html Tables. - I find these really useful. (8)
    If you are a novice web designer, but want your site to look advanced and proffessional, then what
    better way to do so than to use HTML tables? HTML tables are a really easy way of formatting your
    text, to make your ste look proffesional. It looks good, and its easy, what more can you ask for?
    You have to use the tag, so first lets start off with: HTML Table > /table > In
    between theese two tags, we will add the data for the table, using the tags and . =Table
    Heading (Title) =Table Data (what you want in the table) =table row (new row) So, lets ...
  16. Install An Aef Forum Onto The Trap17 - From a zip file (11)
    Installing an AEF Forum on the Trap17 Server Preparation for Installing the AEF Forum
    The following items are required for the installation of the packaage onto your site: 1. - a copy
    of the AEF Forum zip package from http://anelectron.com/download.php 2. - a MySql Database 3. - a
    Database User 4. - a password for the Database User 5. - Privileges allowed for the Database User
    The details for ensuring that you have all of these items are as follows: 1. - a copy of the AEF
    Forum zip package from http://anelectron.com/download.php . Simply browse to t...
  17. Flat-file Cms - tutorial inspired by jlhaslip (4)
    Ok, for this tutorial i am only going to show you how to add updates to your site simply by storing
    the information into a text file, and then displaying it with predefined formatting... OK lets get
    down to business... Lets start out by making a PHP file and call it mycms.php put this code at
    the top of the page. What this will do is allow us to edit the selected update when it comes time
    and show and hide the add an update field and validate the form.. <script
    language="javascript"> function ShowHide(id1, id2) { if (id1 != '') expMenu(id1)...
  18. Creating Navigation For Html Websites - Have a common navigation menu for the whole website! (12)
    Pre-requisite: HTML, inline frame tags 1 Attachment(.zip) included. Updates : 29-12-07: Doctype
    added in example files (Advised by jlhaslip) Designing a whole website takes a lot of planning
    and organization. Designing a proper navigation system is a basic step in building your website. If
    you are developing webpages in html you would have observed that as you go on creating pages it
    becomes difficult to maintain the links to the pages. This article will guide you in developing a
    common navigation menu for your website. It describes three ways, so if you don'...
  19. Simple Scripts In Html And Javascript - Things like BackgroundColorChanger and so (7)
    like in the topic, here is a description how to change the Backgroundcolor "On The Fly", by klicking
    on a button or radio-box first, we ned the html-and body-tags, create a new html-file on your
    desktop and write the following: QUOTE <script language = "JAVASCRIPT">
    browser interpretation: html - tag means "hey, browser, here comes HTML" in the body-tag you define
    the looking of your site. you can add things like "bgcolor" for the background, "text" for the
    textcolor and link / alink / hlink / vlink to define the linkcolor ( ) the scripttag i...
  20. [php] Clean Code Functions - Clean up your html output from php scripts (5)
    There is another Topic about writing 'clean' HTML code posted elsewhere on the Forum.
    I'll edit this Topic and add the link so you can review it on your own, and there is no need for
    me to comment on it in this thread, but the purpose of this Topic is to introduce a pair of
    functions which can be used for making sure that the HTML output from my scripts is readable when a
    view-source is reviewed. Two handy functions are included here. They work together quite nicely,
    and I will start this Tutorial with a short summary of the reasons for their 'being...
  21. Html Legend - Learn how to create a handy legend with HTML! (9)
    I think this is pretty neat... good for those people who maybe aren't that great at designing
    things but still want something to look nice.. CODE <fieldset> <legend>Legend
    title</legend> Content </fieldset> try it in note pad.. it looks nice...good for
    forums, sign up forms......
  22. Cakephp On Ubuntu - using your own public_html folder (0)
    Hi, there are many tutorials about this, but i would like to type the steps i followed in order to
    get cakephp working on my user public_html folder. as many of you probably know, if you have
    apache's userdir module loaded, you can put your web pages on /home/user/public_html , and
    access them with the url: http://localhost/~user/ . I really prefer this, so all my web pages are
    on my personal home, but how to configure cakephp to work with these paths, i got a hard time with
    this, but finally got it!. here's how: in case you don't have apache2's u...
  23. Html Span - (7)
    HTML Span Description The span tag is quite the handy tag to have at your disposal. You can use
    it for everything from Text Formating, to creating a scrollable text area. When combined with CSS it
    becomes an easy-to-use tool for making your website as uniform as possible, as your not bogged down
    with tags for every heading and title on your website. Try It Out CODE <html>
    <body> <div class="content"> <span class="heading1"> Heading
    or title goes here. </span><br><br> All the content insi...
  24. Html Bdo... - (13)
    Description I find that it is often difficult to write a sentence backwards, but thanks to HTML, I
    can now complete this task in only a few seconds. Now the only problem is it is very difficult to
    read... Try It Out Welcome to one of the most useless functions of HTML. The tags enable you to
    write a sentence backwards. The code is quite simple. CODE <bdo dir="rtl">I
    find that it is often difficult to write a sentence backwards, but thanks to HTML, I can now
    complete this task in only a few seconds. Now the only problem is it is very difficult to r...
  25. Want-to-start Html Tutorials - An HTML tutorial that covers the basics (2)
    NOTE: Don't use a rich text editor* for writing HTML code! Use Notepad in Windows,
    SimpleText in Mac or TextEdit in OSX, but you must set the following preferences for the HTML code
    to work! In the Format menu, select Plain Text. Open the preferences window from the Text
    Edit menu, then select "Ignore rich text commands in HTML files." Start Creating Your Own HTML
    File You can either use HTM or HTML file extensions. For more information, visit:
    http://filext.com/file-extension/htm for HTM or http://filext.com/file-extension/html for HT...
  26. Create A Simple Html Editor With Php And Javascript - (3)
    Ok, I will teach you how to create a simple HTML editor that runs online with buttons that add HTML
    tags. Before we start: You should have basic knowledge of these languages. HTML/XHTML
    Javascript PHP You will need Ability to use filesystem functions. Chmodding abilities
    Features of Editor Online PHP safe Full HTML support A Few Bad Features Can only create new
    documents or overwrite Fairly unsafe Now we are ready to begin. The PHP Script This will be
    our PHP script that we will use to make the file. Make a file called save.php Here is the...
  27. Simple Shoutbox In Php - (2)
    This is a simple shoutbox I created in the past for my class. “shout!box.php” CODE
    <html> <head>   <title>  Projekt Shout!box  </title>
    </head> <body>   <form action="shout!box_prc.php"
    method="post">    <table border="2" align="center"
    width="400">     <tr>      <td
    align="center">SHOUT!!!BOX</td>     </tr>     <tr
    height="300">      <td align="center" width="300...
  28. Spice Up Your Forms - With a bit of CSS and HTML alignment (11)
    Ever wonder how to make those stylish forms you see everywhere? Well now it's your change to
    learn. This short tutorial will show you how to do exactly that. Here is a bit of css to spice
    up the form. I have included comments to explain what classes will change what in the forms.
    CODE <style type='text/css'> .form table { background-color: #187cae; }
    /*The following css class will change the table cells within the .form div */ .form td {
    background-color: #bbe0f4;            padding: 3px;            border: 0px;         ...
  29. Faux Ajax Loading - Css Only - Pretend your site is Ajax based (3)
    Link: http://www.jlhaslip.trap17.com/samples/misc/ajax/index.html Check that out. The first page
    has information and the second and has the actual example of its use with sample CSS code. I find
    that when you visit a site which has a slow server and attempt to view 'large' Image files,
    it is pretty boring to sit and stare at a blank screen, so this little snippet of code can be used
    to give the visitor something to see to indicate that the image is being downloaded. I built a
    small animated gif that sits in the background of the space allocated for the image...
  30. Simple Shoutbox - PHP, MySQL driven.. (34)
    Ok, so I'm going to show you how to create a very basic shoutbox which is driven with PHP and a
    MySQL database. So, lets start - open a database management program like PHPMyAdmin and run these
    queries. SQL CREATE TABLE `shoutbox` ( `id` INT( 11 ) NOT NULL AUTO_INCREMENT
    , `name` VARCHAR( 255 ) NOT NULL , `mail` VARCHAR( 255 ) NOT NULL , `time`
    VARCHAR( 255 ) NOT NULL , `message` TEXT NOT NULL , `ip` VARCHAR( 255 ) NOT NULL ,
    PRIMARY KEY ( `id` ) ) TYPE = MYISAM ; CREATE TABLE `shoutbox_a...



Looking for make, simple, file, based, shoutbox, php, html

*RANDOM STUFF*





*SIMILAR VIDEOS*
Searching Video's for make, simple, file, based, shoutbox, php, html

*MORE FROM TRAP17.COM*
How To
Extract The
Audio From
Youtube
Videos get
an mp3 file
from youtube
How To:
Change Your
Website'
s Index File
a simple
trick using
.htaccess
Reclaim
Control Over
Your
Windows-base
d Pc Part 1
Add Flashing
Inbox To
Invisionfree
Forum Html
code for
invsiionfree
!!
How To
Create Pdf
Files Using
Free Tool
Introduction
to use a
free tool to
create PDF
file
Create
Dynamic
Html/php
Pages Using
Simple
Vb.net Code
Taking your
application
data, and
creating a
webpage for
others to
vie
How To
Install
Opengeu In
Ubuntu
OpenGEU is a
distro based
on
Enlightenmen
t and
derived from
Ubuntu
Make A Flat
Based
Shoutbox,
With Auto
Refresh.
Background
Image Swap
Script
Change a
Background
Image based
on clock
time
Transfer
File Of Any
Size Using
Winsock
Control
Winsock Help
Debug Exe
Files How to
debug an exe
file.
How To: Make
A Simple Php
Site Making
one file
show up on
all pages
using php
Tutorial:
Installing
D-shoutbox
For Ipb V1.2
Making your
installation
even easier
Make A
Moderately-s
ecure
Password
System Using
Javascript
using file
redirection
to hide the
password.
How To: Html
Tables. I
find these
really
useful.
Install An
Aef Forum
Onto The
Trap17 From
a zip file
Flat-file
Cms tutorial
inspired by
jlhaslip
Creating
Navigation
For Html
Websites
Have a
common
navigation
menu for the
whole
website!
Simple
Scripts In
Html And
Javascript
Things like
BackgroundCo
lorChanger
and so
[php] Clean
Code
Functions
Clean up
your html
output from
php scripts
Html Legend
Learn how to
create a
handy legend
with
HTML!
Cakephp On
Ubuntu using
your own
public_html
folder
Html Span
Html Bdo...
Want-to-star
t Html
Tutorials An
HTML
tutorial
that covers
the basics
Create A
Simple Html
Editor With
Php And
Javascript
Simple
Shoutbox In
Php
Spice Up
Your Forms
With a bit
of CSS and
HTML
alignment
Faux Ajax
Loading -
Css Only
Pretend your
site is Ajax
based
Simple
Shoutbox
PHP, MySQL
driven..
advertisement



How To Make A Simple File Based Shoutbox Using Php And Html



 

 

 

 

ADD REPLY / Got an Opinion! a humble request :-) RAPID SEARCH! Free Hosting [X]
Express your Opinions, Thoughts or Contribute your information that might help someone here.
Ask your Doubts & Queries to get answers.. "Together, We enlight each other!"
Register FREE for AD-FREE forum, Create your own topics, Ask Questions, track topics, setup subscriptions & notifications and Get a Free Website w/ Email and FTP.
500MB Space *No Ads*, CPanel, FTP, PHP, MySQL, EMails - 100% FREE