Jump to content

Pagination help - html form


laradam

Recommended Posts

I am trying to 'paginate' a table for inserting records into a MySQL database with 15 input fields, having 5 fields in a different page.

 

I have managed to work some code into displaying MySQL results, by looping the results. However, i am lost as to how to loop the form so that only 5 input fields can be on each page (attached image).

 

All the tutorials i have come across only deal with paginating database results, and not the form itself for inserting multiple columns on different pages.

 

[attachment deleted by admin]

Link to comment
https://forums.phpfreaks.com/topic/214431-pagination-help-html-form/
Share on other sites

Use sessions or a combination of sessions and temp database records to keep track of submitted values for each page. If you want to allow your visitor to complete the information later, I would store data in a temp table or marked as incomplete in the primary table. If the visitor MUST complete the form now (can't come back later), I would probably store the values in session vars until they hit the final submit.

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.