Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number

Re^3: Private messages without chatterbox

by ikegami (Patriarch)
on Oct 17, 2004 at 20:01 UTC ( [id://399961] : note . print w/replies, xml ) Need Help??

in reply to Re^2: Private messages without chatterbox
in thread Private messages without chatterbox

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 + "] " + +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