Jump to content

PHP Form Processing Help


andrewvmail

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

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.