课程: PHP with MySQL Essential Training: 1 The Basics
今天就学习课程吧!
今天就开通帐号,24,700 门业界名师课程任您挑!
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…
随堂练习,边学边练
下载课堂讲义。学练结合,紧跟进度,轻松巩固知识。