Forum Moderators: coopster
$pattern = "href=\"";
$replacement = "href=\"http://mylink.com/click.php?id=$_POST[id]&url=";
$entry = eregi_replace($pattern,$replacement,$entry);
echo "$entry";
Basically it should replace <a href="http://mysite.com">My link</a> with <a href="http://mylink.com/click.php?id=$_POST[id]&url=http://mysite.com">My link</a>
Any help appreciated.
But, if str_replace is working for you, good enough ;)