Graphic Design
  Home arrow Graphic Design arrow Page 9 - Using HTML Quickform for Form Processing
Dev Articles Forums 
ADO.NET  
Apache  
ASP  
ASP.NET  
C#  
C++  
ColdFusion  
COM/COM+  
Delphi-Kylix  
Design Usability  
Development Cycles  
DHTML  
Embedded Tools  
Flash  
Graphic Design  
HTML  
IIS  
Interviews  
Java  
JavaScript  
MySQL  
Oracle  
Photoshop  
PHP  
Reviews  
Ruby-on-Rails  
SQL  
SQL Server  
Style Sheets  
VB.Net  
Visual Basic  
Web Authoring  
Web Services  
Web Standards  
XML  
Dedicated Servers  
Actuate Whitepapers 
VeriSign Whitepapers 
IBM® developerWorks 
Sun Developer Network 
Weekly Newsletter
 
Developer Updates  
Free Website Content 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us Get Paid 
Request Media Kit
Contact Us 
Site Map 
Privacy Policy 
Support 
 USERNAME
 
 PASSWORD
 
 
  >>> SIGN UP!  
  Lost Password? 
GRAPHIC DESIGN

Using HTML Quickform for Form Processing
By: Apress Publishing
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 4 stars4 stars4 stars4 stars4 stars / 146
    2004-09-01

    Table of Contents:
  • Using HTML Quickform for Form Processing
  • Steps for the Example
  • Individual Elements
  • Text, Password, Textarea
  • Hidden, Select
  • Checkbox, Radio
  • Submit, Reset, Button, Image
  • File, advcheckbox, Static
  • Header, Link, HTML
  • Element Groups
  • Processing Submitted Data
  • Without a Callback Function
  • Setting Validation Rules

  • Rate this Article: Poor Best 
      ADD THIS ARTICLE TO:
      Del.ici.ous Digg
      Blink Simpy
      Google Spurl
      Y! MyWeb Furl
    Email Me Similar Content When Posted
    Add Developer Shed Article Feed To Your Site
    Email Article To Friend
    Print Version Of Article
    PDF Version Of Article
     
    Iron Speed
     
    ADVERTISEMENT

    At the virtual BlackBerry Technical Seminar 2008, you can ask your development questions directly of Research In Motion® (RIM) experts, and take advantage of learning opportunities designed uniquely for BlackBerry solution developers. Register Today!

    Using HTML Quickform for Form Processing - Header, Link, HTML


    (Page 9 of 13 )

    header

    The header element is similar to the static element but only its label is displayed, and it has different formatting. This makes it useful for a header that sets off a section of a form.

    These are the valid arguments when creating a header element:

    • $elementName: The name for HTML_QuickForm’s internal element array

    • $text: The text to display in the form The following is the sample usage:

    $form->addElement('header','episode_4','A New Hope');

    The following is the sample HTML:

    <tr>
      <td nowrap="nowrap" align="left" valign="top" colspan="2" bgcolor="#CCCCCC">
    <b>A New Hope</b></td>
    </tr>

    link

    The link element generates an HTML <a> tag that is paired with a label in the form layout.

    These are the valid arguments when creating a link element:

    • $elementName: The name attribute of the element’s <a< tag

    • $elementLabel: The label of the link in the form

    • $href: The target of the link

    • $text: The text to display in the form

    • $attributes:Arbitrary element attributes, as a string or an associative array

    The following is the sample usage:

    $form->addElement('link','pp_link','Privacy Policy:',
      'http://www.example.com/privacy.html', 'Click Here',
    '_target="blank"');

    The following is the sample HTML:

    <tr>
    <td align="right" valign="top"><b>Privacy Policy:</b></td>
    <td valign="top" align="left"><a _target="blank" name="pp_link" href="http://www.example.com/privacy.html"<Click Here</a></td> </tr>

    html

    The html element inserts unmodified HTML into the rendering of the form. Because HTML_QuickForm displays form elements in table rows, take care to format HTML inserted with this element properly so that it fits into the form’s table.

    This is the valid argument when creating an html element:

    • $text: The HTML to display in the form The following is the sample usage:

    $form->addElement('html','<img src="spacer.png"<');

    The following is the sample HTML:

    <img src="spacer.png">

    This chapter is from Essential PHP Tools: Modules, Extensions, and Accelerators, by David Sklar, (Apress, 2004, ISBN: 1590592808). Check it out at your favorite bookstore today.

    Buy this book now.

    More Graphic Design Articles
    More By Apress Publishing


       · Any idea what version this comes in for the PEAR distribution?
       · If you follow the example code for uploading a file you may get frustrated that the...
       · Sorry,but I'd rather work in the old fashion way. You have much more control...
       · I think page 13 of the article, "Using HTML Quickform for Form Processing - Setting...
       · it's a really good tutorial. thank you again
       · Good intro, but you don't seem to have anything about setting default values, which...
       · Of course there is a method to set default values:e.g....
       · can you give me an example re: the client-side validation on custom rule.. the...
     

    GRAPHIC DESIGN ARTICLES

    - Building Corner Effects with Transparent Bac...
    - 3D Graphics Technology: VRML Part I - Introd...
    - Creating Visual Effects
    - Web Page Design Overview
    - Creating Artistic Photographs
    - Working with Tools in Paint Shop Pro 8
    - Using HTML Quickform for Form Processing
    - Introduction to Adobe FrameMaker
    - WebLogic Workshop, WebLogic Platform, and th...
    - Planning the Site
    - Working with Web Services
    - WebLogic Workshop Application Development Ba...
    - Scanning Images for Web Use
    - Web Graphics Overview
    - The Pen is Mightier than the Brush Tool


    Iron Speed





    © 2003-2008 by Developer Shed. All rights reserved. DS Cluster 4 hosted by Hostway