Jump to content
Larry Ullman's Book Forums

combining pages for DBM


Recommended Posts

We are creating separate pages for each of the functions (add_entry, view_entry, edit_entry); other than having a long page of script and forms is there another reason why these can't be combined into a single page with multiple forms and corresponding code?

Link to comment
Share on other sites

Good question! The main reason is the logic would be really complicated and prone to have bugs. It definitely not an approach I'd recommend for beginners. If anything on a more advanced level, I might be inclined to make it more modular: for example, put the form and form validation in one or two separate pages then included by the primary pages. 

Thanks for the great question!

Link to comment
Share on other sites

 Share

×
×
  • Create New...