This is a draft
An introduction to the code π
What is necessary to create a form page π
- add a new add two pageHandles to _handles.inc: "testForm" and "testFormSubmit"
- add an appropriate function to the required source-file in pages/
- add a basic framework of a page function "testForm"
- probable add some authentication checks
- add a formBlock with the field-definitions
- define a second submit page function "testFormSubmit" the get the requestData, modifies objects and either jumps back to the from-page, renders it's own page or jumps to another page like "home"
Some other hints π
- in the submit function your could call printFormVars() to get a overview of the passed fields
- the input-names should start with a meaningfull identifier like "test_"
- prefer new Field_XXX instead of hard coded html-code (this will make your code open for upcomming additional security and consistency-checks)
Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 81 bytes) in
/www/htdocs/w005ed8b/db/db_item.inc.php on line
36