A comment spoofer? What is this you ask? Well, it's not a tool for creating fake comments, nor is it a script for pretending that someone has left a
comment. No no. It's a script that pretends to allow your users to leave a comment. So not so much a
comment spoofer but more of a comment script spoofer. I just call it the asshole, or the pointless way to
make your users hate you because in essence, that's what this script does. It's similar to the one at the bottom of this page if you want to take a look, apart from the fact that the one on this page works. Lets get to it shall we.
![]()
First we need some crap here for people to comment on. So just imagine any of my other articles here. Next we start the PHP code. If you don't care how the code is written, you can just download it here
<?PHP
Great. Well done. Well, that's it for today. No not really. next we need to create a form of some kind. lets have a text box for the persons name and a comment box for their comments i guess.
<form method="POST" action="' . $PHP_SELF . '">
<p>Name:<input type="text" name="name">
</p>
Enter your comments below: <br />
<textarea name="comment" rows="5" cols="50"></textarea>
<input type="hidden" name="verify" value="true">
<input type="submit" name="Submit" value="Submit">
</form>
Now we have a form like the one at the bottom of this page. Fantastic. What more is there to do? Well, we need the handler to, can you guess, handle the form. Aha.
if(isset($_POST['verify']) && !empty($_POST['name']) && !empty($_POST['comment']))
{
echo '1 comment so far<p> </p><div align="left">Name:' . stripslashes($_POST['name']) . '<br />';
echo 'Comment:' . stripslashes($_POST['comment']) . '</div>';
}
else
{
}
What if the name is left blank? or the person leaves no comment? We need some code between the 'else' curly braces.
else
{
if (isset($_POST['verify']) && (empty($_POST['name']) || empty($_POST['comment'])))
{
echo 'You must fill in both Name and Comment';
}
echo 'No comments yet!
<form method="POST" etc...
}
So really, cut the form code and insert it into the 'else' after the second nested 'if' conditional. Sweet.
The 'if' will execute if the form has already been submitted and the name and comment fields were filled in. Otherwise the 'else' will execute. If, after the else has begun, the form was submitted but the name or comment (or both) fields were not filled in, the error message appears and the form is displayed again. Lastly, if neither of the 2 situations described above occur, For example, if the form hasn't been submitted yet, the 'else' conditional will execute without any messages.
Lastly, end the PHP tag
?>
Were done. congratulations. I hope you learned something from this. If you did, please let me know because i can't see anything useful here.
Download the script here
19 comments so far
 
|
Name: Big John
Comment: This crap really IS a waste of time. I love it Name: bullshit test Comment: this onw doesnt work Name: bullshit tets Comment: ok it does. lol Name: john doe Comment: Big John is gay. i am not big john Name: teenage mutant ninja tortoise Comment: Every day another part of me dies. Today i lost a large chunk. Damn you baumen!!1 Name: teenage mutant ginja turtle Comment: You scare me tortoise Name: George bush Comment: My fellow Americas. is spoofer even a word? Name: Barry Davidson Comment: It's lovely that you people are commenting but i think it would be even better if someone was to "comment" on the 'nocomment script'? Name: not Barry Davidson Comment: the 'nocomment script' is shit Name: also not Barry Davidson Comment: HAHAHA Name: Barry Davidson Comment: Wow. I set myself up and it really hurts. Name: Boobesque Comment: Thanx for helping. HAVE A NICE DAY Name: master Comment: i won't comment on this because it's crap Name: curious george Comment: *DELETED* Reason - You A hole Name: gjy Comment: gfhgdsgfg Name: gjy Comment: just testing Name: best sex Comment: http://www.bigbangaro.com/referrer.php?id=25544 Name: xxx Comment: i love angelina jolie. she has big lips. Name: jj the jet plane Comment: yeah and she buys her children so she wont have a bucket crutch |





