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 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.
Skip to toolbar