Hi all, I've finally gotten a handle on object-oriented programming (it took ages), and I really like it. But I'm still struggling with conceptualizing some things. For example, if I want to make a form using objects, do I make a Form class with a method like startFORM($name_of_action_page, $method), then another method like inputBox($name_of_box), etc. until I get to closeFORM(). Lets say I do it this way, then if I want to put the form in a table to straight things out, do I place the methods in between the html tags <td></td>. If I do that, where do I put the TRY and CATCH statements. Or do I have to use them? I want to make a drop down box and be able to populate it with whatever I place in the parameters. Is that how I would do it? All of the books I've been looking at are about big classes, XMLWriter, but what I need is more about how to use objects and classes on basic things on a website. Thanks for the help.
Pado 0 Light Poster
cwarn23 387 Occupation: Genius Team Colleague Featured Poster
Pado 0 Light Poster
Stefano Mtangoo 455 Senior Poster
cwarn23 387 Occupation: Genius Team Colleague Featured Poster
pritaeas 2,194 ¯\_(ツ)_/¯ Moderator Featured Poster
Stefano Mtangoo 455 Senior Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.