View Single Post
11-11-2008, 10:12 PM
#1
developer_x is offline developer_x
Status: Junior Member
Join date: Mar 2005
Location: Copenhagen
Expertise:
Software:
 
Posts: 88
iTrader: 0 / 0%
 

developer_x is on a distinguished road

  Old  A small subscription function - OOP or Modular Programming?

Hi all,

I have a small function to develop. and I am unsure if doing it the modular way or the OOP way would be the right way to go.

A basic email form, to get a person's email. Once the user presses the submit button after typing the email address, an email is sent to him/her.

Once he approves the validation link from the subject of his email, he is informed that he has subscribed to the newsletter.

There is no newsletter and no admin panel for the administrator.

Just a basic signup function making use of ajax on the email form side and the PHP's email functions. The email addresses and the Flag Status is saved in a mySQL database accessed through a database.php file.

I want to know if for such a small function:

- OOP concept (classes, objects, polymorphism) is possible to use
- if usage of such an OOP concept in the coding would be a wise choice to make?

Obviously, I am not well equiped with the basic reason to use OOP as in data encapsulation etc. So a good explanation of why or why not I should prefer OOP or structured programming here would be really appreciated and beneficial.

Regards,
developerx