I don't understand very well, but I noticed a BIG mistake :
header("location: <a href="http://www.evostation.com/_memsect/login.php" target="_blank">[url]http://www.evostation.com/_memsect/login.php[/url]</a>");
You just can't do that. You must do something like that :
header("Location: [url]http://www.evostation.com/_memsect/login.php\n[/url]");
Could you explain with more details what you want to do ?
Thanks.