Development > Folder

DevGuide/#3389

Summary

open
Dec 13, 2006
Dec 13, 2006 / pixtur
Mar 7, 2010 / guest
 

Attached files

No files uploaded
 
This is a draft

An introduction to the code π


What is necessary to create a form page π

  1. add a new add two pageHandles to _handles.inc: "testForm" and "testFormSubmit"
  2. add an appropriate function to the required source-file in pages/
  3. add a basic framework of a page function "testForm"
  4. probable add some authentication checks
  5. add a formBlock with the field-definitions
  6. 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)

Sub tasks

ListTreeGrouped
 

1 Comments

guest:Thanks

8 days ago - visible as suggested - Delete

Thanks for the steps and the hints. They were of great help. As for me I'm overlooked one detail and this info was of great help to me. By the way, I found nice books in development at rapidshare SE http://rapidpedia.com .