SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Wizard Busch's Avatar
    Join Date
    Jan 2004
    Posts
    1,072
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Question HTML_Quickform & custom textarea

    Does anyone know how to create a custom version of a textarea with PEAR::HTML_Quickform?

    Any help would be totally appreciated!

  2. #2
    SitePoint Enthusiast
    Join Date
    Nov 2004
    Location
    Boston
    Posts
    25
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by Busch
    Does anyone know how to create a custom version of a textarea with PEAR::HTML_Quickform?

    Any help would be totally appreciated!


    Just make an array of 'Attributes'

    PHP Code:

    include_once 'html/quickform.php';
    $obj = new HTML_QuickForm('frm''post');

    $attributtes = array ( 'id' => 'message''class' => 'msg''rows' => '20''cols' => '60' );
    $obj->addElement('textarea''message''Message...'$attributtes);

    //...... 

    J!

  3. #3
    SitePoint Wizard Busch's Avatar
    Join Date
    Jan 2004
    Posts
    1,072
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks, that worked. i appreciate your help.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •