Hello
This night I tried everything I could think of / find on the internet . No success ?
What I want to do is to validate a field . If it contains the symbols “<” or “>” I need it to return a error .
Also , if it contains “www” , “.com” , “.XXX” to return a error too .
Is there anyone experienced with validation that can help me ?
What I got ( and i think it was closest to the right one ) was this :
[code=php]if ($input == NULL || $input == “something”){
$input_error = “You must type a something first ! “;
}else if (preg_match(‘/></’, $input)) {
$input_error = “You have invalid characters in your phrase.”;
}else{
$displayer_create = mysql_query(“INSERT INTO `DB` (`id`,`content`) VALUES (”,’$input’)”);
};};
Tried to do it with ” preg_match(“/[^<>
Thank you in advance