Justtechjobs.com Find a programming school near you






Online Campus Both


php-db | 2001051

Re: [PHP-DB] Checking abuses From: Kelvin (kelvinyip <email protected>)
Date: 05/11/01

Hi Vipin,

    Don't want to explain to much , I have my code here , you can look at
it and put it into your coding.
P.S ---- don't worry, the code is working fine.

----------------------------------------------------------------------------

---
<html>
<head>
 <title>Post Board</title>
</head>
<body>
<div align="center">
<form action="filename.php" method="POST">
<font face="Arial, Helvetica, sans-serif" size="3" color="#ff6600">
<textarea name="comment" cols="45" rows="9"></textarea>
</font>
<br><br>
<input type="submit" value="Submit">
</form>
</div>
</body>
</html>
--------------------------------------Save as
yourfilename.php-----------------------------------OK
And than,

<? include("newvetting.inc"); keywordMatch($comment,$keyword,"yourfilename.php");

////// if everything is ok----- put your script at below, otherwise it will return back to yourfilename.php... ............. .............. ............. ?> -----------------------------------Save as filename.php----------------------------OK

<? $keyword=array(".com",---- put all the words here............"wop","www.","xxx");

function keywordMatch($left, $keyword,$notpassurl) { $left=strtolower($left); for($index1=0;$index1<count($keyword);$index1++) { $strvalkeyword=strval($keyword[$index1]); $strmatch=strstr($left, $strvalkeyword); if ($strmatch!="") { Header("location:$notpassurl\n"); exit(); }/*end if*/ }/*end inner for*/ }/*end function*/ ?> ----------------------------------------Save as newvetting.inc--------------------OK

"vipin chandran" <whoosh_vc <email protected>> wrote in message news:20010511185250.16447.qmail <email protected> > Hi, > I am presently develepong a message board system. Can anyone tell me > how to prevent abuses in the messages posted in the message board, > from getting displayed?. > > thanx, > vipin. > > vipin chandran > whoosh_vc <email protected> > > > -- > PHP Database Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-db-unsubscribe <email protected> > For additional commands, e-mail: php-db-help <email protected> > To contact the list administrators, e-mail: php-list-admin <email protected> >

-- PHP Database Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-db-unsubscribe <email protected> For additional commands, e-mail: php-db-help <email protected> To contact the list administrators, e-mail: php-list-admin <email protected>