The "Freeola Customer Forum" forum, which includes Retro Game Reviews, has been archived and is now read-only. You cannot post here or create a new thread or review on this forum.
You don't actually have to do it for the E-mail, as it apparently will work regardless :o)
What trim() does though is cut of any spaces at the beginin and end of a word.
Well, probably better if you intend to print the E-mail Address back to the browser then, making the formating neater :o).
But how about changeing it to:
$recip = trim($email);
So if the user enters a space at the begining or the end for some reason, the person will still get the E-mail :o)
Why not just stick the $email right in there??
mail($email, $subject, $body, "From: $from");
$recip = $email;
$subject = "Monkey_man's dodgy porn links";
$body = "Here's a dodgy porn link for you:
And I never forget to \"escape\" my quotes!";
$from = "Monkey Man
mail($recip, $subject, $body, "From: $from");
?>