How to implement this in Wix?

I want to replicate working of this code in wix and open the redirected page in new tab.

Username Password

I have created a Username and Password field with wix form editor giving them required field ids and a Submit button.

I don’t know how to put them together and send the data to https://my-eoffice.com/client/postLogin.php with post method.

And open the redirected page in new tab.

Hi,
You redirect to a new tab when linking the submit button.
You can use HTTP functions to send data from the site, check it out here .

Good luck:)