From the course: PHP with MySQL Essential Training: 1 The Basics
Unlock this course with a free trial
Join today to access over 25,300 courses taught by industry experts.
Solution: Add forms
From the course: PHP with MySQL Essential Training: 1 The Basics
Solution: Add forms
(electronic music) - [Instructor] I hope that you were successful with your challenge assignment. In this movie, I'm going to show you the solution that I came up with. First, let's look in a browser and then we'll take a look at the code. You can see in the browser, I can click on pages and I come up with my pages area and I have a new link here now for create new page. And when I click on it, it takes me to new.php, and I get back a form to allow me to create a new page so I can add the menu name. I can type position and I can type visible. Let's try to type testing and I'll put in visible true. And I'll click create page. Now this submits to the same page, new.php, that's different than what we did throughout the rest of the chapter, where we used create.php. We're using single page submission here, single page form processing. So it's going to submit to itself new.php. And you can see that it lists the form parameters that came in. It says received testing position one, visible…
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.