Handle Submit Form request from website

I have an existing ERPNext installation working just fine, inside my www folder I have a form in HTML in which users needs to fill out then create a document in ERPNext, here is the folder structure:


And the form shows perfectly fine so far:

How can I handle the submit event of that form in the server-side and eventually create a new document iex:

def manage_request(context):
new_request = frappe.new_doc(‘client_request’)
“name”: context.name,
“request”: context.request