How can i handle a form submit using REAL OOP in PHP

Posted by Lorence on Stack Overflow See other posts from Stack Overflow or by Lorence
Published on 2010-03-16T00:34:30Z Indexed on 2010/03/16 0:39 UTC
Read the original article Hit count: 639

Filed under:
|
|
|

Im used to java and creating UML.. and i was wondering how can PHP be OOP, the objects live only until you make a request.. then they destroy, so if im using a database is useless to create a class and add the members (variables) to the class, they will be useless.. i cant pass the main system object from one page to another, or similar so how can PHP be compare to jave? you never do OOP .. i mean REAL OOP.. not creating classes , in fact your index will be a procedural file with some object instance and then ? how about if i make a html form and i want to submit the data.. i have to call a file which is not a class is a php procedural file were i grab the submited data with POST, from that file you will instance a class and do some logic there.. but for me thats not pure OOP.. can somebody point me to the right way of OOP using a form submit example ?

Thanks!

© Stack Overflow or respective owner

Related posts about php

Related posts about oop