Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


How do I block certain words from my guestbook?

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Random spam
View previous topic :: View next topic  
Author Message
OSIRIS
Grandmaster Cheater
Reputation: 0

Joined: 27 Aug 2006
Posts: 654

PostPosted: Sat Oct 11, 2008 7:35 pm    Post subject: How do I block certain words from my guestbook? Reply with quote

Code:

<?php

mysql_connect("localhost", "user", "pass") or die(mysql_error());
mysql_select_db("website") or die(mysql_error());

$comment = $_POST[message];
$name = $_POST[name];
echo "<h1><center>Message Submited.</center></h1>";

mysql_query("INSERT INTO message
(name,message) VALUES('$name','$comment') ")
or die(mysql_error()); 
 
?>


<meta http-equiv="refresh" content="1; URL=guestbook.php">





Like just for an example how would I stop the word "sex" from appearing?



I think I would have to use the if command something like this, but im not sure.


Quote:
if ($_POST[message] == "sex")
window.location = /guestbook.php
else

<?php

mysql_connect("localhost", "samsung", "dildo#s") or die(mysql_error());
mysql_select_db("website") or die(mysql_error());

$comment = $_POST[message];
$name = $_POST[name];
echo "<h1><center>Message Submited.</center></h1>";

mysql_query("INSERT INTO message
(name,message) VALUES('$name','$comment') ")
or die(mysql_error());

?>


<meta http-equiv="refresh" content="1; URL=guestbook.php">
Back to top
View user's profile Send private message
Lorrenzo
Moderator
Reputation: 4

Joined: 02 Jun 2006
Posts: 3744

PostPosted: Sat Oct 11, 2008 7:37 pm    Post subject: Reply with quote

http://forum.cheatengine.org/viewtopic.php?t=300422
_________________
LAWLrrenzolicious
Back to top
View user's profile Send private message
Ihazanidea
Cheater
Reputation: -1

Joined: 24 Aug 2008
Posts: 36
Location: In an underground bunker with large amounts of liquor and women.

PostPosted: Sat Oct 11, 2008 7:37 pm    Post subject: Reply with quote

Stephon....First you complain about the site now your helping people with it....thats weird...But good for you you figured something the probably no ones gonna use...and if ya do you found something..
_________________
  ▲
▲ ▲ ← Learn to do it.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> Random spam All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites