laradam Posted September 26, 2010 Share Posted September 26, 2010 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 More sharing options...
BlueSkyIS Posted September 26, 2010 Share Posted September 26, 2010 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. Link to comment https://forums.phpfreaks.com/topic/214431-pagination-help-html-form/#findComment-1115855 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.