form data help

I am having an issue. I want to post form data to backend python, then when customers click submit. Transfer them to a different domain( How do you do this?
My thought is
type: ‘POST’

Do I do the callback: function()
This is a general question since I am going to do it with several things

Your question is not clear, can you elaborate please?

Form data is is posted when you submit doc.

use hooks, to trigger actions on doc events.

I think you should look into Frappe’s routing methods

I simply want to do a web form POST to the server side python. Along with sending the user to a different URL. I have been able to do both a post and redirect. But never at the same time.