che cos' non funge è normale...allora prova cosi:

aggiungi un campo di testo nascosto

<form action="testo.asp" method="post" target="testo" name="formtesto">
Inserisci il testo da visualizzare nella chat: <input type="text" id="txt">
<input type="hidden" id="nascosto">
<input type="submit" value="invia" onmsubmit="send()">
</form>

tra i tag javascript scrivi
function send(){
document.getElementByID("nascosto").value=document .getElementByID("txt").value;
document.getElementByID("txt").value=""
}
nello script lato server al posto di perndere il valore da txt lo prendi dal campo nascosto