No, sorry. I've tried both of those already, and niether escaping the first "$", or concatenating (I hope that's spelled correctly) the validators with the variable seemed to work.
This is what I originally had. In this case it will match "value", or "valueo" or "va", etc., because it's not completely validating it using ereg() :
<?
$array[] = "valueone";
$array[] = "valuetwo";
$countem = count($array);
for ( $i=0;$i<$countem;$i++ ) {
$allvalues .= $sites[$i] . "<br>";
}
if ( !ereg($user_input, $allvalues) ) {
}
?>
But I need the $user_input to match only one of the array values, exclusively. So it will not match "val" or "valueo" etc. It has to be the complete array value only.