Eccolo , breve è coinciso ...

paginauno.php

Codice PHP:
<html>
<head>
</head>
<body>
<form method="post" action=paginauno.php> 
<input type=text size="50" name=chiave>
<input type="submit" name="invio" />

</form>
<?php
if(isset($_POST['invio'])){
$chiave=$_POST['chiave'];
$controllo=0;

$array_control=array('grassi');

$array=explode(' ',$chiave);
for (
$x=0$x<sizeof($array); $x++){

            for(
$a=0;$a<sizeof($array_control);$a++){
            if(
$array[$x]==$array_control[$a]){$controllo++;}
        }
}

if(
$controllo>0){$stringa=trovato;}else{$stringa=$chiave;}
echo 
"$stringa";
}else{echo 
'inserire un carattere';}
?>

</body>
</html>


Ciao


.