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
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.