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 Quote Link to comment 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. Quote Link to comment 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. Quote Link to comment 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. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.