gpoole Posted June 6, 2009 Share Posted June 6, 2009 Hi there, first post :-). I've been given the following spec: Design a class hierarchy for automating HTML form generation, validation (client and server side), submission and processing. The aim is to remove the mix of PHP and HTML code. The programmer needs to be able to create a form by creating appropriate PHP objects, connecting them together and then calling a final “draw()” method which will output the actual HTML to the browser. The programmer should then also be able to intercept the form when it is submitted, automatically reconstruct the PHP objects and process it accordingly. The first paragraph makes sense, but I'm having trouble understanding what is meant by 'intercepting' the form and reconstructing PHP objects around it. Any ideas what they're trying to get at here? Thanks a lot! Link to comment https://forums.phpfreaks.com/topic/161177-dynamic-form-creation/ Share on other sites More sharing options...
gevans Posted June 6, 2009 Share Posted June 6, 2009 I'd imagine that they want the script to recognise a form cubmission and handle the form in a default and appropriate manner. Perhaps just cleaning strings, or storing them in their own named variables in preperation for data handling!? Link to comment https://forums.phpfreaks.com/topic/161177-dynamic-form-creation/#findComment-850513 Share on other sites More sharing options...
gpoole Posted June 6, 2009 Author Share Posted June 6, 2009 thanks a lot :-) Link to comment https://forums.phpfreaks.com/topic/161177-dynamic-form-creation/#findComment-850567 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.