Hello all,
I am trying to use more regex but I can't seem to get this to work. The aim is to check inputs for either [url, [link or <a href:
$islink = false;
foreach($_POST as $k => $v){
if((preg_match("/[url|[link|<a href/i", $v)) > 0 ){
$islink = true;
}
}
#gather data in sanitised variables
$name = make_safe($_POST['name']);
$feedback = make_safe($_POST['feedback']);
$refer = make_safe($_POST['refer']);
if($name && $feedback && !$islink){//process}
The if keeps executing, Any help would be great