返回列表 發帖

換行改痘點

<?

$M_email_i = nl2br($_POST['mail']);
$M_email_i = str_replace('<br />', ',', $M_email_i);
$M_email_i = str_replace(' ', '', $M_email_i);
echo $M_email_i;

?>
<form id="form1" name="form1" method="post" action="">
<textarea name="mail" id="mail" cols="45" rows="5"></textarea>
<input type="submit" name="button" id="button" value="送出" />
</form>

返回列表