cant seem to get it to work
heres what i have
<?
ob_start();
$string = trim("$_GET[loc]");
$pattern = "/^([url]http://[/url]){1}/";
if (preg_match($pattern, $string, $matches)) {
echo "http-- ".$string."";
} else {
echo "no http-- ".$string."";
// header("Location: [url]http://[/url]".$string."");
}
?>
as you can see, i will be using header() to change the url when approved, but right now, both instances (with and without [url]http://[/url]) return as no http--