I have a Webflow form and I want to send the submitted data to my EC2 instance. Which has a PHP cUrl API request which will send it to an external database.
I am not sure how to connect them so that when the form is submitted by the user it will then interact with my EC2 instance.
You would do the same as you would with any form, hosted anywhere, by specifying the from action pointing to your application URI and setting the correct method expected. It’s just a form submitted somewhere else.
If you are serving pages via HTTPS now (Webflow) then you need to also use HTTPS for the script. As for the redirect on submit, that you should control via your script. If you don’t want a redirect then you would need to support submitting via AJAX. If this is new to you I suggest reaching out to a developer who can assist with clean secure code.