This sounds like a reasonable suggestion to me. --Blake
On Aug 16, 8:12 am, Caius Durling <[email protected]> wrote: > Hi guys, > > I've just changed the comment form to add "comment_" to the ids of > each element in the form, and noticed the names are just mirroring the > id. Which leads to field names like "comment_name", which exists as > $_POST["comment_name"] in the submitted data. > > Now I realise this is my personal taste, but I prefer to use $_POST as > a named array for post data, so you'd access the name field like $_POST > ["comment"]["name"]. I prefer separating the data out in this way, > because it makes it easy to ignore all post data except for the form > you want (because $_POST["comment"] contains only the data from the > comment form.) > > So I'm wondering if there's a good reason for us to stick with > comment_name, or if we could move to comment[name]? > > C > --- > Caius Durling > [email protected] > +44 (0) 7960 268 100http://caius.name/ --~--~---------~--~----~------------~-------~--~----~ To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/habari-dev -~----------~----~----~----~------~----~------~--~---
