ONJava.com -- The Independent Source for Enterprise Java
oreilly.comSafari Books Online.Conferences.

advertisement

AddThis Social Bookmark Button
Article:
  Quick and Clean PHP Forms
Subject:   HTML_QuickForm_Renderer_Tableless
Date:   2007-11-29 07:23:19
From:   nasser2
Adam, very nice tutorial and it really takes QuickForm to the next step forward. Thus why I want to use your extended class for my form generation.


However, what do I do to use it with the HTML_QuickForm_Renderer_Tableless class to generate a tableless form. I normally use:



require_once 'HTML/QuickForm.php';
require_once 'HTML/QuickForm/Renderer/Tableless.php';


$form =& new HTML_QuickForm();
$renderer =& new HTML_QuickForm_Renderer_Tableless();


// usual code, e.g. new form fields, rules, ...


$form->accept($renderer);
echo $renderer->toHtml();


and worked with QuickForm but not with QuickerForm.


Would you please help me.


Thanks,
Nasser



1 to 1 of 1
  1. HTML_QuickForm_Renderer_Tableless
    2007-11-29 08:09:55  ajs17@cornell.edu [View]

    • HTML_QuickForm_Renderer_Tableless
      2007-11-29 08:15:38  nasser2 [View]

      • HTML_QuickForm_Renderer_Tableless
        2007-11-29 08:23:06  ajs17@cornell.edu [View]

        • HTML_QuickForm_Renderer_Tableless
          2007-11-29 16:25:19  ajs17 [View]

        • HTML_QuickForm_Renderer_Tableless
          2007-11-29 08:33:11  nasser2 [View]

1 to 1 of 1