PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
I'm developing a website where a user can update their information in the database. When the user first goes to the update page, the function displayUpdateForm is executed. This allows the user to type in the Id for which record they want to update in the database. After they submit the form, the actionUpdateForm function is executed which uses a foreach statement to print all the users information into a form with text fields. Then after they are finished updating the information they press submit one more time which executes the processUpdateForm function and thatll submit the updated information to the database. The problem I'm having is after the user submits the updated information from the actionUpdateForm, the only value being passed in the post array is [submit]=>update. I've looked at the view source in the browser and none of the text fields inside the foreach statement are there even though they are displayed on the screen. Can anyone see where my code is going wrong?