Jump to content
Larry Ullman's Book Forums
Sign in to follow this  
possowski

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?

Share this post


Link to post
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!

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

×
×
  • Create New...