Discover a technique for creating an array of HTML form values that is very useful when working with object-oriented programming and the active record design pattern.
[Instructor] In this movie, I want to show you a technique…for working with form data that's very useful…when we're working with object-oriented programming.…This technique does not use php at all.…It really just uses plain HTML,…but I think that it's helpful enough…that we should cover it here.…So far, when we've been creating our form data,…we've been creating our form tags, such as input.…We have typed text, and then we've been giving it a name,…and the name is just the property…that we want to be associated with.…We have brand, model, year, et cetera.…
Altogether our code, we have 10 different form elements…and they're and not all input tags, but you get the idea.…When we submit our form, it's going to submit values…for each one of those properties,…and then when we go to process the form values,…we're going to take each one of those values…that's been submitted in the post data…and we're going to create an associative array…where we also assign it to a key by the same name.…So we have our args and we have a key for brand,…
Note: This is an intermediate-level training course that assumes you have existing knowledge of PHP. To refresh your skills, check out PHP Essential Training and PHP: Object-Oriented Programming.
- Creating a project database and tables
- Connecting to the database
- Database queries with OOP
- The active record design pattern
- Defining a database-driven class
- Performing common database tasks with OOP
- Creating inheritable and reusable code
- Object-oriented user authentication
- Object-oriented pagination
Skill Level Intermediate
Consuming RESTful APIs in PHP with Guzzlewith Justin Yost2h 12m Intermediate
PHP: Accessing Databases with PDO and MySQLiwith David Powers3h 47m Intermediate
1. Overview and Project Setup
2. The Database Connection
3. Define a Database-Driven Class
4. Object-Oriented CRUD
5. Object-Oriented Authentication
6. Object-Oriented Pagination
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.