Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

devjack's avatar

Multiple forms

I am building an app where I have a form for information and then a form for payment. I was wondering if I can store the information from the first form and then submit it to the database once the payment has been confirmed?

My app uses commander and a custom stripe form.

0 likes
5 replies
mikebronner's avatar
Level 16

You might have to rethink your strategy. Cleanest would be to use a single form if you want to process the data from both forms in the same POST. You could just open the form at the top of the page and close it at the bottom of the page (or however close you can get it to encapsulate both sections of form fields).

These concepts are a bit hard to analyze and discuss without examples. If you have a page we can reference, or some sample code as to how you built the page with the two forms, that would let us provide more specific answers. :)

devjack's avatar

I'll just add it to the same page, I've found a way to do it now, cheers!

1 like
devjack's avatar

A tutorial for what? Commander or Stripe?

Please or to participate in this conversation.