From the course: PHP: Object-Oriented Programming with Databases
Unlock this course with a free trial
Join today to access over 25,500 courses taught by industry experts.
HTML forms for OOP - PHP Tutorial
From the course: PHP: Object-Oriented Programming with Databases
HTML forms for OOP
[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…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
-
-
-
(Locked)
CRUD operations5m 59s
-
Create a record9m 35s
-
(Locked)
Dynamic attribute list7m 59s
-
(Locked)
Sanitize values for database4m 40s
-
(Locked)
Find record to update8m 34s
-
(Locked)
Update a record11m 30s
-
(Locked)
HTML forms for OOP5m 38s
-
(Locked)
Validations and errors8m 22s
-
(Locked)
Delete a record7m 21s
-
(Locked)
Create inheritable code11m 12s
-
(Locked)
-
-
-