computermax2328 Posted June 4, 2012 Share Posted June 4, 2012 Hello again, I am having a hard time with setting an $id variable on a multi-page submission. It is for a form that updates my data base. What is happening is every time I update my database it updates every row with that information, so I realized that I needed an $id variable. The $_GET ['id'] function is working on the form page, but not the capture page. Is there a way to pass the $id variable to the capture page? Thanks again, #noobstatus Link to comment https://forums.phpfreaks.com/topic/263654-id-variable-for-multi-page-submission/ Share on other sites More sharing options...
Jessica Posted June 4, 2012 Share Posted June 4, 2012 Put it in the form as a hidden input, or use a session. Link to comment https://forums.phpfreaks.com/topic/263654-id-variable-for-multi-page-submission/#findComment-1351176 Share on other sites More sharing options...
Psycho Posted June 4, 2012 Share Posted June 4, 2012 I'll concur with the hidden input suggestion. Using a session *can* work, but it would create problems if users open pages in multiple tabs/browsers. Link to comment https://forums.phpfreaks.com/topic/263654-id-variable-for-multi-page-submission/#findComment-1351177 Share on other sites More sharing options...
computermax2328 Posted June 4, 2012 Author Share Posted June 4, 2012 Thank you for the help! Sorry about being a noob. Could you recommend any good books for learning php and MYSQL? I learned from lynda.com, but the guy who teaches it there is TERRIBLE. Link to comment https://forums.phpfreaks.com/topic/263654-id-variable-for-multi-page-submission/#findComment-1351192 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.