Submitting a form to JSON API

I need to create a php form that can submit data to a API, I wonder if someone could help me?

I have my form page created already, I’m just not sure on the code required to pass the form data to the API.

I am using the SMSGateway API which is documented here: https://smsgateway.me/sms-api-documentation/messages/sending-a-sms-message

My form consists of the following code made in jQuery FormBuilder: https://pastebin.com/YYcVgiXA

Can anyone please advise how I proceed? I do plan to expand this to support multiple recipients in the future but for now it would be helpful to just have a working form we can use for a single recipient

Thanks for any help :slight_smile:

So, Jquery $.post and JSON are what you need to look into.

Thanks for the pointers, I think I’m over my head on this project. I’m not a coder myself but trying my best to make something usable lol. Will update you have I have any success

Sponsor our Newsletter | Privacy Policy | Terms of Service