Forum Moderators: coopster

Message Too Old, No Replies

repeating a form

         

transmutated

10:26 pm on Mar 13, 2006 (gmt 0)

10+ Year Member



Alright, so what I am trying to do is make a form for receiving material into a database. My problem is that when a order comes in, it has an multiple different items. And I dont want to make a static form and have to have people go in and add the multiple items one at a time. Here is what I was thinking...

on page one...

store a value from a form that will determine how many different items there are.

on page two...

carry the value from page one to page two in the URL and have page two grab the value and duplicate the variable with the html table(s) that I store as a custom variable.

I am unsure if this is possible. I have a decent grasp on PHP but not sure if this will work. It sounds easy enough. But if I can store the table as a variable to be called, how will I let the page know that each table is for a different entry. Please help... this is a lot to swallow for my php knowledge.

inveni0

10:39 pm on Mar 13, 2006 (gmt 0)

10+ Year Member



You need to perform a database query to get the records you want to update. Then, you perform a repeat region (do/while) action on the table. It will repeat until all records are accounted for. Then, your submit button can update each row.