Fun. Hehe.
Ok, here's the trim stuff:
Replace $email = stripslashes($_POST['email']);
with:
$email = stripslashes(trim($_POST['email']));
And
$edited = str_replace($email,"",$filecontents);
with:
$edited = trim(str_replace($email,"",$filecontents), " ,");
Let's see how that works.



Reply With Quote


Bookmarks