JavaScript cart

hello everyone can any one help me
With
https://codepen.io/Dimasion/pen/oBoqBM

I want to add the post method to that JavaScript cart so I can use web3form in this cart to receive orders
And thanks

About 1 minute of Google searching gives me this code example from Web3Forms showing exactly how to submit a form through Javascript:

Can I ask why you’re asking this question here? Are you trying to build a website with this on InfinityFree?

5 Likes

Yes but I want it to be like a shopping cart not a contact form I want to make a simple one that sends order via mail and I am trying to do it on infinityfree

It’s a coding issue then. I would advice you to seek help from dedicated coding communities instead of a hosting provider.

You’ll need at least that form + PHPMailer if you plan to do this. (And yes, a contact form is not so different than a shopping cart form.)

3 Likes

Can I use the post method instead of php that redirects to web3form?

If I understand it correctly, Web3Forms is like a hosted contact form. So no PHP code is required on the server, because the email sending is handled by Web3Forms. Which means you don’t need PHPMailer.

Yes, you can use Web3Forms and not have to use any PHP or PHPMailer.

3 Likes

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.