Exercise Construction Steps (Cont.)

  1. Web User Interface Construction [(X)HTML]
  2. (X)HTML is short for (eXtensible) HyperText Markup Language, the authoring language used to create documents on the World Wide Web. (X)HTML defines the structure and layout of a web document by using a variety of tags and attributes.

    ~/public_html/course/280/5/3.html   (HTML)   (text)
    <html>
       ...
     <form method="post" 
       action="http://undcemcs01.und.edu/~wen.chen.hu/cgi-bin/280/5/SearchString.pl">
      String = <input type="text" name="string" value="PHP MySQL AJAX Java Oracle" size="40" /> 
      Query  = <input type="text" name="query" value="java   object  php" size="20" />
      <input type="submit" name="act" value="Search string">
      <input type="submit" name="act" value="HTML source">
      <input type="submit" name="act" value="Perl source">  
      <input type="submit" name="act" value="Java source">
      <input type="submit" name="act" value="Help">
      <input type="reset"  value="Reset">
     </form>
       ...
    </html>
    http://undcemcs01.und.edu/~wen.chen.hu/course/280/5/3.html



    String =     Query =

             



    http://undcemcs01.und.edu/~wen.chen.hu/cgi-bin/280/5/SearchString.pl

    HTML forms are used to select different kinds of user input. A form is an area that can contain form elements. Form elements are elements that allow the user to enter information (like text fields, textarea fields, drop-down menus, radio buttons, checkboxes, etc.) in a form.

    • type="checkbox", which lets a user select one or more options of a limited number of choices,
    • type="text", which specifies a single line text entry field within the form that contains it,
    • type="submit", which submits the form when a user clicks the button, and
    • type="reset", which re-sets all the fields in the form to their initial values when a user clicks the button.



      “Whenever you find yourself on the side of the majority, it is time to reform (or pause and reflect).”    
      ― Mark Twain