ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

POST form to external site using JSON

November 02, 2012 5:44pm

Subscribe [1]
  • #1 / Nov 02, 2012 5:44pm

    SwitchDev

    43 posts

    Ok, my client needs to be able to submit a PHP form that will send data via json. I have everything I need to post the json which was developed by the 3rd party folks.

    What I am looking for is how I would send up a PHP form and where I would submit it to. Any info would be helpful.

    Should I create a plugin or just enable PHP in the page. It doesn’t need to interact or submit to EE in any way. I just need to send the POST data.

    Thanks

  • #2 / Nov 05, 2012 4:42pm

    Dan Decker

    7338 posts

    Hi yankeyhotel,

    You can build the form as you would in vanilla HTML. Have the form POST to your PHP script that handles the JSON conversion and you should be all set.

    You can even use channel entry data to populate part of the from if you need too.

    Let me know if you have any questions.

    Cheers,

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases