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 am buildiing an admin area to manage a list of articles. Each article has a status which can either be current (0) or archived (1). I have both of these options in a slect menu. I want to be able to update the record when choosing the status in the select menu. The code I wrote seems ok but I don't know if I have to specify the id in the menu options (nor do I understand how).
You may want to consider one form, or using an array of fields to post with. Also, there is no need to use output buffering in your update code, unless you are doing it to hush header already sent warnings (which is still not a reason to use it).
You might want to even consider a checkbox, since in essence you are offering only a Yes/No type situation to them as it related to Archive/Current.