• Hi I am trying to post submitted form to somewhere else,

    I am able to send all fields but I can not get the attachment, any idea how can I get it and send it?

    Here is my code;

    $ticket_data = json_encode(array(
    “name” => $posted_data[“your-name”],
    “email” => $posted_data[“your-email”],
    “subject” => $posted_data[“your-subject”],
    “description” => $posted_data[“your-message”],
    “type” => $posted_data[“type”],

    //”attachments[]” => curl_file_create($posted_data[“attachment1”]),

    ));

    • This topic was modified 7 years, 4 months ago by canyasa.
  • The topic ‘How to get attachment with $posted_data ?’ is closed to new replies.