Revision [8278]

This is an old revision of AdvancedFormOpen made by JavaWoman on 2005-05-18 11:11:45.

 

Advanced Form Open


The WikkaCore Wikka core has a FormOpen() method that creates the opening tag for a form. However it has a number of limitations, such as no way to specify an id and/or class attribute, and not supporting enctype needed for a file upload form. This leads to ugly workarounds and inconsitent (and conceivably invalid) code.

The following replacement for FormOpen() addresses these issues and makes sure the generated code is valid XHTML. It uses a number of new supporting methods that may have more general usefulness as well.

New FormOpen() method


The folowing code should replace the FormOpen() method in wikka.php (at line 694 in the 1.1.6.0. release version:
  1.  


later
There is one comment on this page. [Display comment]
Valid XHTML :: Valid CSS: :: Powered by WikkaWiki