Jump to content

popup form within form


peter.t

Recommended Posts

Hello, I might be in over my head but I figure why not ask for help.

 

I have two forms.  A main form with a few text fields.  Inside this form is a link to a popup form where the user fills in a few text fields.  When this popup form is submitted, I want the information to be submitted as an array to one variable and when the main form is submitted, the popup info is submitted into a hidden field.

 

Here's the breakdown:

Main Form has these text fields:

>name

>email

link to popup form

 

 

Popup Form has these text fields:

>field1

>field2

>field3

>field4

When submitted, the popup window closes and this information carries back over to the Main Form and through a hidden field.

 

So in the end, the fields in the Main Form are:

>name

>email

>popupinfo (this hidden field stores the combined values of the popup form = field1, field2, field3, field4)

 

This Main Form ends up being stored in a mySql db.

 

Is this way too complicated?

Link to comment
https://forums.phpfreaks.com/topic/171724-popup-form-within-form/
Share on other sites

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.