* improved but still wrong
[citadel.git] / ctdlphp / postmsg.php
index 70111a7547845bbf8ab48101396382c8bd68accb..778d269d3c0bf418b7e8e8ca4506643b7cfe7da8 100644 (file)
                echo htmlspecialchars(substr($response, 3)) . '<br>' ;
        }
        else {
-               echo 'Sending: ' . $_REQUEST["msgtext"] . '<BR>' ;
-               flush();
-               serv_puts($_REQUEST["msgtext"]);
-               echo 'Sending: 000<BR>' ;
-               flush();
-               serv_puts("000");
+               text_to_server($_REQUEST["msgtext"], TRUE);
        }
 
        echo "Message has been posted.<BR>\n" ;