Jump to content
Larry Ullman's Book Forums

Views: Form To Create And Edit -- Create.Php And Update.Php


KeepLearning
 Share

Recommended Posts

Page 108, version 0.5

 

The following sentence seems to jump over several points, each of which needs a more detailed explanation. Consequently, I cannot understand this sentence at all:

 

"the form used to both create and edit a record is its own file, and that file can be included by both create.php and update.php (those two files start by changing the headings above the form)."

 

Larry, can you break this down please?

 

Thanks.
Link to comment
Share on other sites

Sure. There is a file named _form.php. That file has a form. That same form is used to both create new records and update existing records. That same form file is included by two other files. Those two other files are create.php and update.php. The main difference between the two is the headings above the form. 

 

This also may make more sense to you if you look at the code itself.

Link to comment
Share on other sites

 Share

×
×
  • Create New...