After using HTML QuickForm for some time i have decide to put a tutorial on how do do some unexplained things with it i personally have found very little or usefull information/documentation about QuickForm so i thought i was about time to post some usefull stuff on the interent about it and hopefull some peopel will find it useful!

If you know of any resource that you think is helpfull please contact me and let me know i will be happy to add a link to the specific site.

addElement types :
  • checkbox
  • advcheckbox
  • hidden
  • image
  • radio
  • select
  • static
  • text
  • textarea
  • hierselect
  • date
  • submit
How it works :
$form->addElement('text', 'name', 'Name: ' 'class="text"')

'text' defines the type of input to use.
'name' is the name of the input.
'Name:' is your lable for that input.
'class' simply define the css class you want for that input box.

The result of the above code is this :
Name: <input type="text" name="name" class="text" />
© 2009 Vortex FX - Contact