Jump to content

Recommended Posts

Hi guys,

 

I'm new to PHP and would like some help on how to solve this problem.

I have a form which the variable of the form is not always the same depending on the user who logs in.

For example user A might have a form with 8 fields to fill in and user B might have a form with 20 fields to fill in.

 

On the form processing page I know I should have to have a loop that goes through all the post variable as a condition.

insert $_POST[recid1], $_POST[Name] ....... insert $_POST[recid2], $_POST[Name2]

 

Don't know where to start or is this even possible.

 

:confused:

Link to comment
https://forums.phpfreaks.com/topic/183089-php-form-processing-help/
Share on other sites

Depending on the structure of your database, and how exactly the form is created for each user, an HTML array as Cosizzle suggested would probably be fine. However, without more information about your problem its hard to give much better advice than that

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.