Jump to content

Class Person


oslo

Recommended Posts

Those are two separate things. The "class person" is an example of object oriented programming (OOP) -- it's a design pattern, and can be used as an organizational structure to create an object that retrieves information from a form and processes it... but in and of itself, OOP can't do what you are after.

 

To retrieve data from a form, you'd need to use $_POST[] and to send it to the database, you'd need to use a connection to a database (MySQL, MySQLi or PDO) and an SQL "insert" command. I wrote an example application that adds/deletes and edits data from a database. Might be worth checking out to help you get started? http://www.killersites.com/community/index.php?/topic/3064-basic-php-system-view-edit-add-delete-records-with-mysqli/

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...