Form Questions

 

1.      What is a CGI script?

 

2.      What is the purpose of the <FORM> tag?

 

3.      What HTML tag would you enter to create a text input box with the name “Phone”?

 

4.      What property would you enter to create a Phone input box that is 10 characters wide?

 

5.      What property would you enter to limit entry to the Phone input box to no more than 10 characters?

 

6.      What HTML tag would you enter to create an input box named “Subscribe” with a default value of “YES”?

 

7.      How would you prevent the contents of an input box from being displayed on the user’s computer screen?

 

8.      What HTML tag would you enter to create a selection list with a field named “State” and with options “California,” “Nevada,” “Oregon,” and “Washington”?

 

9.      How would you modify the tag in #1 to allow more than one state to be selected from the list?

 

10.  What HTML tag would make “Oregon” the default selection in #1?

 

11.  What HTML tag would you enter to create a series of radio buttons for a field named “State” with the options “California,” “Nevada,” “Oregon,” and “Washington”?

 

12.  What HTML tag would you enter to create a check box field named “California”?

 

13.  What HTML tag would you enter to create a text box field named “Memo” that is 5 rows high and 30 columns wide, and has the default text “Enter notes here”?

 

14.  What property would you add to the tag in #6 to cause the Memo text to automatically wrap to the next row and to send that text-wrapping information to the CGI script?

 

15.  What HTML tag would you enter to create a Submit button with the label “Send Form”?

 

16.  What HTML tag would you enter to create a Reset button with the label “Cancel Form”?

 

17.  What HTML tag would you enter to create an image field named “Sites” for the graphic image “Sites.gif” with the VALUE property “GotoPage”?

 

18.  What HTML tag would you enter to create a hidden field named “Subject” witht the field value “Form Responses”?

 

19.  You need to have your form work with a CGI script located at http://www.j_davis/cgi-bin/post-query. The method the Web server uses is the GET method. What should the <FORM> tag be to correctly access this CGI script?

 

20.  If your web page gives users the option of sending files along with form information to the Web server, what type of encoding does it probably use?

 

21.  You want to use the MAILTO action to send your form to the e-mail address walker@j_davis.com. What is the appropriate <FORM> tag to enter?