IS 337: Website Administration

Lecture for October 27: Forms, GET and POST

+
-

Topics

Forms in (X)HTML

  • <form>: action and method attributes
  • <input>: type, name, and value attributes toggle
    • types: button, checkbox, file, hidden, image, password, radio, reset, submit, text
    • Naming radio buttons
  • <textarea>: name, rows, and cols attributes.
  • <label>: for attribute

Forms in PHP

  • PHP associative arrays
  • $_GET, $_POST, and $_REQUEST global associative arrays
  • $_SERVER global associative array, 'REQUEST_METHOD' key

Readings and Resources

Quick Written Assignment for Next Time

Write a form for requesting starting and ending values for a "list of squares".

Creative © 2007 Calvin College and Jeremy D. Frens.
This work is licensed under a Creative Commons Attribution-Noncommercial-Share Alike 3.0 United States License.