possowski Posted October 1, 2018 Share Posted October 1, 2018 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 More sharing options...
Larry Posted October 1, 2018 Share Posted October 1, 2018 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 More sharing options...
possowski Posted October 1, 2018 Author Share Posted October 1, 2018 thanks, sounds like something to tackle after I complete the PHP and MySQL book. Link to comment Share on other sites More sharing options...
Recommended Posts