Jump to content

One submit button for 3 forms


hellboy_matcha

Recommended Posts

Hi Guys,

 

I have a situation in here regarding forms.

 

I have 3 different forms, each one with it's own MySQL table

to be filled by a single user but instead of having 3 submit buttons for each form i want to have

one submit button for all the 3 forms.

 

In other words:

After filling the third form the user hits submit button and it sends the data on the first, second and third form to

each correspoding table.

 

How can i structure this?

Link to comment
https://forums.phpfreaks.com/topic/135656-one-submit-button-for-3-forms/
Share on other sites

premiso's idea is a very nice one, I've used it on a big registration form before that split into 7 parts. Little bit of javascript can make it go a long way!!

 

Also setting <a name="form-part2"></a> and in the link that opens the next section have #form-part2 as the link and return true will show the second part and move the page down for you, otherwise you can find your user will end up at the top of the page bot times they reveal more of the form!

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.