Calimero wrote:Derfel Cadarn
Programmer>
Yeah, well, euhhh I just got that title automatically by writing more than 100 postings in this forum. It has nothing to do with my (in)abilities...
Check out Volka with 5000 postings or so...
But back to your problem: I don't have the code ready for you, but I think a method of how to solve the problem could be of some help, perhaps?
Assuming you know HTML and a BIT of PHP:
1. write the form with the textfield (name=textfield).
2. <form action="posting.php" method="post" blahblah>.
The posting.php-script needs to do something like this:
1. define an array containing the forbidden words.
2. read the text the visitor has written as a whole with $_POST[textfield].
3. with the function [php_man]split[/php_man] you can split the text into an array containing the words (split the text at each space).
4. And now: [php_man]foreach[/php_man] word in the array compare it with the words in the array with the forbidden words: if the same then delete the words from text.
I know this sounds very complicated, perhaps I didn't explain it too well either. But this is the method I'd use.
Success!!
