Non so perché ma non riesco ad andare a capo.
Tutta la mia pagina php é fatta cosi:
Codice PHP:
<?
$song_title=$_POST['song_title'];
$artist_name=$_POST['artist_name'];
$message=$_POST['message'];
$user_name=$_POST['user_name'];
$user_email=$_POST['user_email'];
$mailto = "moksud_xp@hotmail.it";
$mailfrom = "email@mittente.it";
$object = "New request from Radio Doorbin";
$msg = "
<html>
<head>
</head>
<body>
[b] New request from Radio Doorbin![/b]
[b]Song Title:[/b] $song_title
[b]Artist Name:[/b] $artist_name [b]
Message:[/b] $message
[b]User Name:[/b] $user_name
[b]User eMail:[/b] $user_email
</body>
</html>
";
// Intestazioni HTML
$mail_in_html = "MIME-Version: 1.0\r\n";
$mail_in_html .= "Content-type: text/html; charset=iso-8859-1\r\n";
$mail_in_html .= "From: <$mailfrom>";
if (mail($mailto, $object, $msg, $mail_in_html))
{
print "Your request \nhave been sent!";
}
else
{
print "Please fill \nup correctly!";
}
?>
<html><head>
<meta http-equiv="refresh" content="60;url=song_req.html" />
</head><body></body></html>
Quando mi fa la stampa della frase "Your request have been sent!", NON mi manda a capo dopo le prime 2 parole, come mai?
Io lo \n ce lho messo, ma perché non va a capo?
Per una dimostrazione potete andare su http://www.thebangladesh.it/radio/so.../song_req.html