Is this possible: call applescript app to handle data from a HTML form

I have an app that handles incoming data. What I want is that data can be edited from a HTML-form and on commit is sent to an AppleScript app.

I have a local Apache server up and running/