Re: Problem with implementing forms in PHP while loop

Originally Posted by
glennemlee95
Which forum software are you using exactly? Most forum software, even the free ones, have built in systems for deleting posts for admins and moderators.
Don't assume that everybody uses off-the-shelf software. Many of us prefer to, or find ourselves forced to, develop custom solutions, either out of intellectual curiosity, professional pride, or simple disgust with the quality of what's available. (You couldn't pay me enough to use most of the blogging, forum, CMS or ecommerce platforms out there on my own site, and I'd only inflict them on others if time-to-launch was the primary concern.)
In this case, the OP (gdebojyoti.mail96) is working with a custom "status update" feature developed in relation with this thread in the Programming Help forum. (A subsequent question in that forum is leading me to believe that he/she will be reinventing Facebook before long, so I'd advise backing up a step or two and planning the architecture before getting too carried away. "Friends" will lead to "groups" and "circles", "status" will almost certainly be followed by "comments", and before you know it data and relational integrity are going to become a big problem.)
As for the technical issue here, I'd be willing to bet on the missing </form> tags (as misson mentioned). Since the forms are unnamed and have the same action and method, there's no guarantee that they'll be autoclosed, so your submitted values may very well be unexpected arrays.
“Beware of bugs in the above code; I have only proved it correct, not tried it.” --Donald Knuth
"It was as if its architects were given a perfectly good hammer and gleefully replied, 'neat! With this hammer, we can build a tool that can pound in nails.'" -- Alex Papadimoulis (on TheDailyWTF.com)