to give me some ideas on how to redirect
preg_match_all("/<\s*a [^>]*?href=([^>\s]+).*?>/i", $introtext, $match, PREG_PATTERN_ORDER);
$a = "0";
$i = "0";
while ($a < "10") {
$url = urlencode($match[1][$i]);
$introtext = ereg_replace("", "", $introtext);
$a++;
$i++;
}
preg_match_all("/<\s*a [^>]*?href=([^>\s]+).*?>/i", $fulltext, $match, PREG_PATTERN_ORDER);
$a = "0";
$i = "0";
while ($a < "10") {
$url = urlencode($match[1][$i]);
$fulltext = ereg_replace("", "", $fulltext);
$a++;
$i++;
}
preg_match_all("/<\s*a [^>]*?href=([^>\s]+).*?>/i", $notes, $match, PREG_PATTERN_ORDER);
$a = "0";
$i = "0";
while ($a < "10") {
$url = urlencode($match[1][$i]);
$notes = ereg_replace("", "", $notes);
$a++;
$i++;
}
if($fulltext == "") { $alltext = "$introtext $notes"; } else { $alltext = "$introtext $notes
$fulltext"; }
if($informant == "") $informant = $anonymous;
getTopics($sid);
themearticle($aid, $informant, $datetime, $title, $alltext, $topic, $topicname, $topicimage, $topictext);
?>