foreach($_POST['category'] as $ch) { $category =+ $ch.", "; } mail($email, $targy, $message);