A variation:
Replace the node id at <------ with the node id of the page on which the form is located, the node id of the full page chat (3184), the node id of inbox (48824), or whatever. This is where you'll be redirected when the message is sent.
<form method="POST">
<input type="hidden" name="op" value="message">
<input type="hidden" name="node_id" value="3184"> <------
<table>
<tr><td>To:</td><td><input type="text" name="recipient"></td></tr>
<tr><td>Private Msg:</td><td><input type="text" name="text" width="100
+"></td></tr>
</table>
<input type="hidden" name="message" value="">
<input type="button" value="Send" onclick="
this.form.message = "/msg [" + this.form.recipient + "] " + this.fo
+rm.text;
this.form.submit();
">
</form>
Requires JavaScript. Untested. Doesn't check the length. It has the side offect of preventing messages from being sent to the CB
|