Scusate il titolo poco chiaro, ma la spiegazione è difficile:

vorrei che se ASDRUBALE invia un messaggio a MICHELANGELO con scritto "Ciao", se MICHELANGELO risponde, nel messaggio apparirà:
Messaggio inviato il 2010-02-28 21:40:59
>>Ciao
Per intendersi ho aggiunto le ">>" per separare un pò.
Il fatto è che se il messaggio inviato è più di una riga mi mostra una cosa del genere:
Messaggio inviato il 2010-02-28 21:40:59
>>Ciao,come stai=
Ho ricevuto la tua lettera ecc..
E quindi prima di ho ricevuto la tua lettera non mi mostra le due stanghette. Come posso fare? Il codice che adotto è questo:

Codice PHP:
<?php include "antet.php"; include "func.php";

if (!isset(
$_SESSION["user"][0])) {header('Location: login.php'); die();}

?>
<html>
<?php echo "<link rel='stylesheet' type='text/css' href='".$imgs.$fimgs."default.css'>"; ?>

<head>
<title><?php echo $title; ?> - <?php echo $lang['writeMsg'] ?></title>
</head>

<body class="q_body">

<div align="center">
<?php echo $top_ad; ?>
<table class="q_table">
<tr>
<td class="td_logo">
<?php logo($title); ?></td>
</tr>
<tr>
<td class="td_top_menu"><?php menu_up(); ?></td>
</tr>
<tr>
<td class="td_content">
<form name="form1" method="post" action="writemsg_.php">
<p><?php echo $lang['recipient'] ?>:
<input class='textbox' name="recipient" type="text" id="recipient" value="<?php if (isset($_GET["id"])) {$usr=user($_GET["id"]); echo $usr[1];} else if (isset($_GET["name"])) echo clean($_GET["name"]); else if (isset($_GET["msg"])) {$msg=message(clean($_GET["msg"])); $usr=user($msg[1]); echo $usr[1];
global
$db_id;

$query="update messages set letto='1' where id=".$_GET["msg"];
mysql_query($query, $db_id);} ?>">
</p>
<p><?php echo $lang['subject'] ?>:
<input class='textbox' name="subject" type="text" size="45" value="<?php if (isset($_GET["msg"])) {$msg=message(clean($_GET["msg"])); echo stripslashes ($msg[3]);} else echo "senza oggetto";
if (
$_SESSION["user"][0]!=$msg[2]) {msg('Non sei autorizzato a leggere messaggi di altri');}
?>">
</p>
<p>
////////////////////////////////////
////////////////////////////////////
////////////////////////////////////
//Questa è la parte da modificare!//
////////////////////////////////////
<textarea class='textbox' name="contents" cols="60" rows="20"><?php if (isset($_GET["msg"])) {$msg=message(clean($_GET["msg"])); echo stripslashes("\r\n\r\n\r\nMessaggio inviato il ".$msg[5]."\r\n\r\n>>".$msg[4]);} ?></textarea></textarea>
////////////////////////////////////
////////////////////////////////////
////////////////////////////////////
//Fine della parte da modificare!///
////////////////////////////////////
//$msg[5] corrisponde alla data e l'ora, $msg[4] al messaggio originale!
</p>
<p>
<input class='button' type="submit" name="button" value="<?php echo $lang['send'] ?>">
</p>
</form>
</td>
</tr>
<?php

if (strtotime($msg[4+$_GET["type"]])>strtotime($_SESSION["user"][6])) $_SESSION["user"][6]=$msg[4+$_GET["type"]];
?>
<tr>
<td class="td_bottom_menu">
<?php menu_down(); ?>
</td>
</tr>
</table>
<?php echo $bottom_ad; ?>
<p><?php about(); ?></div>

</body>

</html>
Aiuto!!