Приглашаем посетить
Чуковский (chukovskiy.lit-info.ru)

Workshop

Previous Table of Contents Next

Workshop

Quiz

1:

The param function in an array context with no arguments returns

  1. undef

  2. The number of form elements

  3. A list of the form element names

2:

The differences between the POST and GET methods are transparent if you use the CGI module.

  1. True

  2. False

3:

The password field input type on an HTML form is secure because it obscures the password before sending it.

  1. False

  2. True

Answers

A1:

c. param, without arguments, returns a list of the element names from the submitted form.

A2:

a. True.

A3:

a. False. With normal HTTP and CGI, all form fields are transmitted in cleartext and are not secure. The password field input type just hides the field as you type it.

Activities

  • Spice up the help desk form a bit. Add timestamps to each entry and maybe some color on the output.

  • Challenge: The display() function prints the entries in the help desk form starting with the oldest. Change the display() function to print the newest entries first.

    Previous Table of Contents Next