Likes: 0
Results 1 to 5 of 5
-
04-04-10, 10:02 PM #1
(PHP) A simple shout box for your site
Register to remove this adHey guys im going to show you a simple step by step guide on how to make your own personal shout box feel free to customize the forum however you may like..I just left a default for you.
Code:<?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 ?>
Now make a new file where it will store all the tags. Name it tags.php and CHMOD to 777.
Okay now here comes the form remember to include the tag.php.
Name:
Website:
Message:
It should closely resemble this:
Code:<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
Now post the code anywhere in your site probably the index to make it appear
Code:<? include "tag.php";?>
› See More: (PHP) A simple shout box for your site
-
07-04-10, 12:45 AM #2
-
17-04-10, 03:20 PM #3
-
26-07-10, 01:05 AM #4
what means with "CHMOD to 777" ? and should i write something in the "tags.php"?
-
26-10-10, 02:31 PM #5
Register to remove this adthanks
Related Threads - Scroll Down after related threads if you are only interested to view replies for above post/thread
Visitors found this page by searching for:
Nobody landed on this page from a search engine, yet!
SEO Blog