Skip to:
Content
Pages
Categories
Search
Top
Bottom

HTML Form to private message


  • lofiz
    Participant

    @lofiz

    I am trying to build a contact form that I can load on any page that would send a private message to a user. I already have the selected user/s in an array and now I would like to take that plus form data to (I’m guessing) message_new_message

    Sample HTML Form

    <form>
    <label>Subject</label>
    <input id="subjec_input" name="subject_input" type="text">
    <label>Message Body</label>
    <textarea id="body_input" name="body_input"></textarea>
    <button id="submit_btn" name="submit_btn">Submit</button>
    </form>

    How I think arguments are given to the function

    `messages_new_message( $args = array( ‘recipients’ => $user_id, ‘subject’ => $title, ‘content’ => $message );

    Any help would be appreciated. Thanks

Viewing 1 replies (of 1 total)

  • rgipp1
    Participant

    @rgipp1

    You ever get this resolved?
    I believe I’m looking for a same solution.

Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.
Skip to toolbar